Just figured it out. The post type had a custom taxonomy so had to replace category_name with slides_categories
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
- Show Post Count of a Category
- CPT posts listed by category with custom rewrite URL, please help!
- Querying Term Posts in Loop
- Filter categories of posts with checkboxes
- 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
- How to Query in WordPress which shows Alphabetic Posts?
- Creating a Tabbed Widget
- Create query for both custom post type and category
- How to properly use Categories with Custom Post Types
- Display custom-post type based on the Title matching the current selected value
- How to output custom post type title on custom page with category next to it?
- how to display new private message to users?
- 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
- Get all custom_post_type posts + blog posts from one category in a single 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?
- How do you get the count of posts in an archive page?
- Mixing regular and custom post types (with meta_query) on home page
- $wp_query->queried_object->ID throws warning: Undefined property
- how to filter by last name for custom post
- Get categories for a specific post – Custom post type
- Use WP_Query object inside a function
- WP_Query search custom posts meta date fields
- Get posts with tag all post types
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Listing and accessing categories for a custom post type
- query order by date on custom type: wrong order
- Taxonomy list. Order by a specific custom post type count
- WP-Admin edit.php & post.php slowdown after import of 10k users
- Set a default category – if the user didn’t select one- before creating a post
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- WordPress Orderby Numeric Value Not Working
- Getting the URL of the parent page
- Custom Post Type Archive Page Filtering
- Show one item per category of a custom post type
- Display posts from Custom Post Type in category page on front-end
- Mixing 2 custom post types with posts output in specific pattern
- First custom field value (out of several) displayed twice after query
- Create new custom post and post category of same name
- multiple custom post type on category page
- WP_query – Filter by tax_query and meta_query using multiple select
- Empty search input does not return all posts
- How to get the current category with custom posts
- Group by custom field value (start and end times)
- Get posts by category name
- WP_Meta_Query object with conditionals
- List child categories from parent category on custom taxonomy page
- Problem while filtering by ‘category_name’
- I can’t connect my custom jquery to wp admin
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- How to display custom taxonomy term specific post?
- Wp Query sort order from custom MetaBox
- Modify the category post counting function
- Reuse the “category” slug for a custom post type
- Custom post types not displaying per category
- How can I use WP_Query argument ‘Like %..%’?
- Custom post type single display is ommited
- Problem to show custom post type in archive page category wise
- Query child posts on parents single.php?
- Custom Post Query Combined with Conditional Tags
- Customising wordpress search and using $_GET[“s”]
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- How can I show posts with the same tag?
- Custom Post Types Permalink
- Load posts via AJAX without draft status
- How to add categories to a custom post type using wp_insert_post($new_post);