Forums

[resolved] Random Posts on Main Page Messing Up (2 posts)

  1. lpe04
    Member
    Posted 3 years ago #

    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!

  2. lpe04
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic