'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 CPT posts based on specific taxonomy
- shortcode to show custom post types by category
- Query/list all terms and their custom post count
- Filtering WP_Query Dynamically on the Front-End
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Genesis filterable portfolio isotope [closed]
- wp_query check if integer exists in custom field’s array
- Wrong request query on cpt and tax
- Search Custom Post Type & Taxonomies
- Get custom taxonomies from multiple posts
- Pagination for Custom Taxonomy Page [duplicate]
- 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
- Custom loop with multiple taxonomy queries
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- search also in taxonomy, tags and custom fields
- WordPress sort search results by custom order
- Custom taxonomy rewrite give pagination 404
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Custom WP Query on custom meta and sort by multiple meta keys value
- Including metaboxes from custom post types in global search — continued
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How can I made custom taxonomies relationship?
- What’s the WP way to load remaining custom posts?
- Custom taxonomies relationship
- Pretty URL for custom search for custom post type
- How to have this permalink structure: post_type/postname/custom_inner_page
- Query Custom Post Type Taxonomy term with multiple parameters
- Auto Complete Search
- First custom field value (out of several) displayed twice after query
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- WP_Query orderby and tax_query
- Search by tag name and category
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- Include custom taxonomy term in search
- Why is my WP_Query outputting my entries twice?
- How to display Related Posts based on number of taxonomy terms matched
- Retrieve custom post types by custom taxonomies with WP_Query
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()
- How to make WP_Query not to show irrelevant posts?
- WordPress wp_query() basic question about args
- Create an archive page for custom post type with custom taxonomy
- Using page slug in wp_query
- WP_Query() with custom post type and taxonomy — get all terms?
- Custom taxonomy wp_query woes.
- Variable not working in WP_Query
- WP_query – Filter by tax_query and meta_query using multiple select
- Creating two loops based on different logic
- Wp Query with multiple custom tag(taxonomy) by get the terms
- Custom filter for main search: how to exclude specific post_type from search results
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- WP_Query parameter conflict
- Select2 AJAX and WP Query Returns ALL and does not filter
- Custom Taxonomy Search result page
- find custom post type post by searching its custom field with my string
- Different options per post type in WP_Query
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- How to sort a WP_Query by a custom field AND ALSO filter by a different custom field
- How to show all taxonomies within custom post type loop
- How to get the post terms from a child taxonomy
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- display posts of custom post type with custom taxonomy
- Custom Search | check multiple meta_value for search value
- Hide custom post type from search based on custom taxonomy
- Custom post type and custom taxonomy 404 on page 2
- tax_query (if the terms are empty)
- Ideas on how to organize a project [closed]
- How to count other posts not having specific taxonomy terms?
- 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
- 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?
- Storing/querying custom date data
- WP Query Post Type with same Taxonomy name
- WP Query WordPress Post Type with the same Taxonomy name
- How to list groupings and keep pagination
- How to retrieve taxonomy terms of the current custom post?
- 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
- Archive custom template from search
- Customising wordpress search and using $_GET[“s”]
- Catergory args causing loop not to show
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- display custom post type from register taxonomy
- 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)
- Custom post archive with search, is_search() is false?