WordPress.org

Support

Support » Themes and Templates » Help on query_posts() Show only specific category

Help on query_posts() Show only specific category

  • Hello to all,

    i have this query_posts which displays 8 videos of all category
    query_posts( array ( 'posts_per_page' => 8, 'post_type' => 'portfolio' ) );

    how can i modify it and add condition that it will only display a specific category. Category ID is 5 for example.?

    Thanks a lot 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help on query_posts() Show only specific category’ is closed to new replies.