Random
-
Hi
I am trying to make my posts in a child category show in a random order. I have this query post below but this only works for the category “The Category”. How do i do it for all my categories?
<?php
query_posts(array(
‘orderby’ => ‘rand’,
‘category_name’ => ‘The Category’
));
if (have_posts()) : while (have_posts()) : the_post();
?>Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Random’ is closed to new replies.