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?
- WP Query filtering by custom category not showing all relevant posts
- Pull total post count for child category and parent if term ID
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Custom query shows custom post types in trash
- Combining custom post type and post category
- Multiple post type queries (with specific arguments for each)
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Filtering by Post Meta Custom Fields – Performance
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- tax_query returning all posts instead of selective posts in WP_Query
- wp_query to find posts by year and month
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- Custom WP_Query not returning results when querying custom post type
- WP Query—Relationship between two custom post types and their fields
- Return array of categories to php function for current post
- Multiple custom post type loops in category.php
- How to dynamically attach pictures to a carousel
- Is it possible to apply a meta_query to one specific post type in a query with multilple post types?
- Remove duplicated values from a loop
- Unable to get paginate_links working with a custom query [duplicate]
- Get custom posts with certain ids in a custom loop using a shortcode
- How to use WP_Query in a CPT achive page?
- Use get_post_types to query only custom posts types
- How to create new category for custom post type?
- WordPress Orderby Numeric Value Not Working
- Custom Post Type Loop within Shortcode
- Fetch taxonomies by custom post type id array
- Use WP_Query() to Output the 4th to 6th Most Recent Posts of a Custom Post Type
- Get all Posts If has same custom field values in Posts
- Get Post Primary Category
- Weird problem happening with custom taxonmy when creating/updating posts
- Add category in post type dynamically
- is_main_query() not working for WP REST API
- is there a way to retrieve posts that do not have a featured image assigned?
- Group custom posts by custom taxonomy names
- How to call a custom post type with WP_query
- Custom Post Types not showing, custom WP_Query
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- Can’t get order_by meta_value_num to work properly
- Use post as category
- How can i skip same post from taxonomy term?
- WP_Query | ‘post_type’ doesn’t work
- How to connect two custom post types with nested loops
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- How to get the post type from a category id?
- Filter by custom taxonomy slug on a custom post type
- Custom Post type and Custom Field WP_Query
- How to add custom post types to normal category pages
- wpdb custom post_type problem