WordPress.org

Support

Support » Themes and Templates » query_posts 'cat' excluding everything

query_posts 'cat' excluding everything

  • I’m attempting to include only posts from category 13 & 14. I’ve tried the following method as well as excluding posts from all other categories and using category__and => array (13, 14). With both methods, I end up with nothing showing.

    query_posts (array( 'post_type' => 'theme_portfolio', 'showposts' => $portfolio_items_num, 'paged'=>$page, 'order'=> 'ASC', 'cat'=>13, 14));

    Any ideas would be greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘query_posts 'cat' excluding everything’ is closed to new replies.
Skip to toolbar