Random post order for a category
-
Hello
I was able to have my posts appear randomly by inserting this line on top of my index.php file (found in one of the older topics):
<?php query_posts($query_string . ‘&orderby=rand’) ?>
But I’d like to apply this only to posts belonging to a certain category (let’s say “Journal”), so that posts belonging to category “Journal” would appear randomly in my blog while all other posts would appear in chronological order as they normally do.
If you know the solution, I’d be very grateful for help. I don’t know php at all, so please bear this is mind 🙂
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Random post order for a category’ is closed to new replies.