query_posts from multiple categories?
-
Hi,
I’am trying to use this code to get posts from category id 34 and 26 in a page template.
query_posts( array( 'category' => array(34,26), 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC' ) );But this query returns ALL posts from ALL categories. What am i doing wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘query_posts from multiple categories?’ is closed to new replies.