include multiple categories with query_post($args);
-
here is my code
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args=array( 'cat' => 3,14, 'posts_per_page' => 9, 'paged'=>$paged,); query_posts($args);
I need to pull from category 3 and 14 but this does not work. How can I pull from both categories with this syntax?
I am stuck with this code since it’s the only way I’ve gotten custom loops to paginate properly.
Thanks for your help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘include multiple categories with query_post($args);’ is closed to new replies.