Your syntax is wrong, change:
query_posts( array(
'post_type' => array(
'post',
$include_reviews,
$include_screenshots,
$include_videos
),
'paged' => $paged )
);
to:
query_posts( array(
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => array( $include_reviews,
$include_screenshots,
$include_videos )
)),
'paged' => $paged,
'post_type' => 'post')
);
Related Posts:
- How to show related posts by category
- Display all posts from specific categories on a page
- Query only Posts from Both of Two Category?
- Featured Posts for Category Pages
- Mark menu item as current-menu-item for category
- Category Foreach keeps looping?
- Exclude category from
- Disable sticky option for specific categories
- How to make multiple sections in home pulling posts category wise?
- how to hide empty fields of post category description?
- Give posts a particular template based on the assigned category
- All categories displays the same posts
- WordPress displays post on subcategory only
- How to get posts ordered by using their categories?
- Getting posts from some categories plus some individual posts
- How to display particular categorie’s post which associated to specific user?
- Querying posts from current category, using a variable as array argument
- Need help writing loop to display posts by categories in separate divs
- Query post category & remove any post id
- How to pass multiple checkbox values to wordpress query?
- Sort Posts Alphabetically Based on Specific Category (Divi)
- Show category name in category.php when posts assigned to multiple categories
- Show posts assigned to multiple categories in current category page
- How to show related posts by detecting the current category?
- Display posts on a custom page from only a specific category?
- Category Page Template not Showing Posts
- display a random post thumbnail from a random category
- How do I retrieve then print the currently viewed sub categories?
- How to use format post in a pertinent way
- How to allow users to post only in certain category and hide elements from edit page?
- How can i limit the number of posts created per category?
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Pulling in post category and children within category
- WordPress custom Query for Posts in Category display posts multiple times
- Post categories to pages
- Get user categories with most posts in it
- Unable to restore from backup – how to obtain old blog posts?
- Post page to display specific category
- Get Posts Under Custom Taxonomy
- Get attachments for posts that belongs to a specific category
- Prevent additional top level categories but allow more children
- Need help with category listing!
- Random ajax load only works with posts_per_page set to -1
- Prepending %category% onto default posts fails
- List all categories with featured image from post?
- Categories list into registration form
- WP_Query: Mixing category__in and tag__in together
- Display an author’s posts on his own author page
- If in_category not working for multiple single.php pages
- How can I setup a relationship using categories in WordPress?
- WordPress Multisite – Create Default Post and New Category On New Site Install
- how to show single post in a custom template
- Multi row post list
- Using ajax on editing a category edit page?
- Related posts by category not working right
- How to list recent posts in a wp nav menu?
- Set Default Category to Username
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How can I hide tags on a child-category page, if that tag has not been used?
- date issue with category post retrival
- posts_per_page option limits the number of Gallery items
- Listing Specific Categories from Current Post with Depth
- Highlight static blog page link in header
- How to display two blog categories as separate sections on one page?
- wp_posts table: safely remove unused columns to save database storage
- Query Posts by Custom Field
- How to make the first post in the loop be styled like a “new / featured” post?
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Redirect to another page using contact form 7? [closed]
- Display post category in foreach loop
- Single.php – Get Current Parent Category
- Order posts alphabetically: how to set order=asc in mysql query?
- How to order posts in an arbitrary order?
- How to create a template for Pages?
- How do I stop the loop from repeating in my category template?
- get_the_category listing in hierarchial order
- How do I do a page break?
- Is it possible to add/tick a category to a post when it is created?
- Excluding posts not working
- Display Posts on Custom Page
- How to get posts from a current post’s month?
- Hide posts belongs to few categories in homepage
- Wrong post title displayed from loop
- Nested WP_Query breaking loop
- WordPress query_posts by tag doesn’t work anymore(?)
- why does wordpress ignore the post args?
- While loop articles – if statement order
- post category in wp_insert_post
- do more action after I publish a post
- Retrieve only posts from a specific user in wp-admin/edit.php
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- Conditionals if tags exist?
- query_post order desc
- Block editors annoying warnings
- How to get subcategories from category slug?
- Remove current category from post but display all others
- How show categories in admin and get that selected to show posts in index
- WordPress website loads more posts than expected
- Showing categories and subcategories with posts
- Change default category when I publish a post