'post_type' => 'custom_type'
is a reference to your post type.
You need to change custom_type
to the actual post type that you created / registered.
So, if your post type was my_cool_dregs then the line would be:
'post_type' => 'my_cool_dregs'
The same holds true with 'taxonomy'=>'custom_tags'
You need use the actual taxonomy name that you registered. If your taxonomy was my_dreg_types then that line would be:
'taxonomy'=>'my_dreg_types'
Related Posts:
- Advanced search form with filters for custom taxonomies
- how to get this tax_query working?
- Display all posts in a custom post type, grouped by a custom taxonomy
- Exclude a category from WP_Query
- Select All in Parent Category, Group by Child Category?
- query multiple taxonomies
- Custom Taxonomy with Custom Post Type Finds No Posts
- Custom query – alternate posts by category
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Search Custom Post Type with all meta attached?
- how to group custom post type posts by custom taxonomy terms
- Sort the main query in subcategories/terms?
- Custom Taxonomy List links being re-written
- Want to filter only parent post in admin area
- How to search from specific post type with tags?
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Exclude current post when getting related post on custom post type and taxonomy
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Ordering Custom Post Types with WP_Query
- Custom post query by taxonomy
- Querying CPT with Two Taxonomies
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- How to create an advanced filter search?
- Querying Term Posts in Loop
- Group custom posts by custom taxonomy names
- How can i skip same post from taxonomy term?
- Filter by custom taxonomy slug on a custom post type
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Archive for custom taxonomy lists all posts instead of current taxonomy
- wp_query check if integer exists in custom field’s array
- Wrong request query on cpt and tax
- Search / Filter posts on Title/Content OR Tags
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Custom-Posttype & Custom Taxonomy WP_Query
- search also in taxonomy, tags and custom fields
- Custom taxonomy rewrite give pagination 404
- Including metaboxes from custom post types in global search — continued
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- What’s the WP way to load remaining custom posts?
- Query Custom Post Type Taxonomy term with multiple parameters
- Auto Complete Search
- Search by tag name and category
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- Retrieve custom post types by custom taxonomies with WP_Query
- Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()
- Using page slug in wp_query
- Custom taxonomy wp_query woes.
- Creating two loops based on different logic
- Select2 AJAX and WP Query Returns ALL and does not filter
- Different options per post type in WP_Query
- How to show all taxonomies within custom post type loop
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- Custom Search | check multiple meta_value for search value
- Exclude latest post from WP_Query taxonomy term loop
- How to query Posts from a custom post type which contains a custom taxonomy?
- Query Posts that have Custom Taxonomy
- List all Custom Post Type posts excluding certain Taxnomy term
- Searching post types
- Foreach loop returning more than one item when querying taxonomy
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Display featured posts for a custom post type by taxonomy
- What is the most efficient way to execute recursive complex queries?
- Sorting the Loop by Taxonomy Value
- custom taxonomy pagination 404 error
- Ordering by meta value not working
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- have to do a while have post to show for two custom post types sharing the same taxonomy?
- custom post type and a “sticky” position taxonomy
- display post count in archive page that have relation with another taxonomy term
- Search Function not searching correct custom_post_type even though post_type is defined in search args
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Query a custom taxonomy in a function to create an csv file
- Custom search for a custom post type in WordPress
- Ajax load more inside custom post type taxonomy
- Create a custom wp_query from a specific custom post type with specific taxonomy
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Display all Custom taxonomy terms and their relevant custom posts
- Query pulling all taxonomies, not one I am specifying
- CPT Efficient way to display posts from different categories with custom query
- Manually build WP_Query
- Query Pulling the same post twice
- Get posts associated with custom taxonomy alternate way
- Extensive search filtering and results->PDF in the front-end
- Loop with Custom Post Type and Taxonomies
- tax_query showing no results
- Values inside a custom field to determine which category posts to display
- Custom post type blog pagination conflict
- How to display elements of different post types?
- Advanced search form with filters for custom taxonomies and custom fields
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Attaching multiple custom taxonomies to one CPT?
- Searching Custom Posts content with JQuery
- Custom Field Search
- Get X posts with the same terms as the current post (custom post type and custom taxonomy)
- Sort ACF by custom taxonomy
- Complex Custom Loop with Includes
- Dynamically count the number of custom post types associated to a custom taxonomy