I am working on a theme that requires randomizing the order of the loop display in categories. This is the code that I am using, which works, but when I move to the next or previous page, duplicates are displayed.
<?php query_posts($query_string . '&orderby=rand'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
I am hoping that someone here has worked through this same issue and might offer some advise.
- The topic ‘Randomizing posts without dupicating on next page?’ is closed to new replies.