• Resolved lpe04

    (@lpe04)


    O.k, I placed the code

    <?php if (have_posts()) : ?>
    <?php
    
    query_posts('orderby=rand');
    
    global $more;
    // set $more to 0 in order to only get the first part of the post
    $more = 0;
    ?>

    before <?php while (have_posts()) : the_post(); ?>

    on the main page, which works, but now when I click on categories or archive links, it just keeps giving me random posts. Any work around this?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter lpe04

    (@lpe04)

    By the way, I just created a category.php and archive.php template page, which seemed to work if anyone was interested. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Random Posts on Main Page Messing Up’ is closed to new replies.