Posted By

bdnnikki on 02/23/10


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

booski


Show ALL posts for a particular category in random order on a page


 / Published in: PHP
 

Here is the code I used to show all of the posts for a particular category...

  1. <?php query_posts('category_name="Your Category Name"&orderby=rand&posts_per_page=-1'); ?>

Report this snippet  

You need to login to post a comment.