That should work. Make sure there’re no typos in your custom post type name or where you register the post type.
If that fails try using:
'post_type' => 'any'
Related Posts:
- WP_Query by a category id and a custom post_type
- Exclude a category from WP_Query
- WP_Query ignores post_type in category view
- category__in not working on custom post type
- List with categories, subcategories and posts of custom posttype
- New WP_query in template not working with CPT+category on some pages
- WP Query group/order by category name
- List all custom post type posts from a given category?
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- Query Custom Post by Category
- Loop through categories and create tab for each
- Getting all custom posts with a certain category
- Query Custom Post Types & category_name?
- Show Post Count of a Category
- CPT posts listed by category with custom rewrite URL, please help!
- Querying Term Posts in Loop
- Pagination on category page with custom post types
- How to show CPTs in term archive
- showing custom post types of a certain category only
- Linking to the most recent post in a Custom Post Type
- Show custom post type filtered by category
- forming WP_Query for posts of all post types but from specific categories
- WP Query with categories only shows one post and ignores the category
- Why is my category template ignoring post type?
- WP the_posts() on single-cars.php get category link
- WP_Query Custom Post Type if Category ID Equals
- Custom post types and ‘new WP_Query’
- How to include category name/id in wp_query for retrieving “custom post type” from a particular category?
- List categories, subcategories and posts from custom taxonomy and custom post type
- WP Query results showing posts outside of category ID
- How to get Custom Post Type with Categories wise in WordPress using wp_query
- Create query for both custom post type and category
- How to properly use Categories with Custom Post Types
- How to output custom post type title on custom page with category next to it?
- Custom Post By Category
- Only show categories that have posts within custom post type
- Query the title of the page to show posts with matching category in the loop
- Only show current category post
- Can’t seem to filter wp_query by current category ID
- Custom Post Type + Category archive
- category_name not working in WP_Query
- Using tax_query to get single post per category
- Are custom posts included when getting a categories’ posts?
- Is it possible to make is_category() recursive?
- WPML with WP_Query serving up all 3 languages [closed]
- Prevent pre_get_posts filter on specific post type
- How to check if I’m on a custom post type archive in the admin area
- Query Custom Post Type taxonomy type based on page
- Counting Posts of a Given Post Type Having a Specific Taxonomy?
- On clicking on the category name the page is redirecting on 404 pge
- Hook onto Add New Category
- How to create posts (not post template) to be displayed on projects page?
- WP_Query post at custom position
- Adding a span when custom post type is updated
- Search tags in CPTs
- Custom query form submission pagination
- Paginated Taxonomy Term Archive including one post per term
- Exclude the parent custom post-type posts only
- Get a permalink structure of /%posttype%/%category%/%postname%
- Woocommerce query specific product from specific category
- wp_query to find posts by year and month
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Including Custom Meta with posts_where query
- Very Slow Page – How to Optimize # of Queries?
- Get latest 3 posts from multiple CPT in one query
- Display upcoming Events for next 7 Days
- Orderby CPT custom fields not working
- Custom WP Query on custom meta and sort by multiple meta keys value
- Woocommerce search pagination not working
- How to order WP_Query by parent for hierarchical Custom Post Type?
- Custom Post Type + Categories
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- How can I show 1 featured post in a styled element, and the next few below differently styled
- How can I list Custom Post Types created with the Types plugin under categories?
- How to get specific post meta by title or id
- WP_Query of custom post type sorted by meta_key has unexpected results
- Get assigned post categories
- How to query for posts (hierarchical custom post type) that have children but are NOT top level?
- Post Query not working
- Am I mixing up the concept of posts pages and categories?
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Display custom-post type based on the Title matching the current selected value
- Custom front-end form for adding post – Category problem
- Custom Post Type Category Displaying ALL Sub Categories as well
- Feature image Gallery made from Custom Post type + Categories
- Numeric pagination custom post type
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- WP Query filter search. Result show all posts instead just custom post type
- Display posts of a hierarchical custom post type excluding parent posts
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- get_post_meta for Custom Post Type ( CPT )
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- Query stopped working
- How can I base a query off of the current page post type AND a meta value from another custom post type
- Fallback if statement based on the number filtered from it
- how to show perticular category posts in custome page
- Problem with menu categories doubling up when updating database?
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?