How to add cat id to loop
-
I am using the the query_posts() function as I want to use orderby=rand
I am using this on the category template but all my posts show up. How would I be able to add the cat ID dynamically to this:
<?php $my_querycat = new WP_Query('orderby=rand&cat=');
Thank you,
Steve
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add cat id to loop’ is closed to new replies.