You did not specify a taxonomy term in tax_query. It should go:
'tax_query' => array(
array(
'taxonomy' => 'taxonomy_name', // my guess
'field' => 'name',
'term' => 'Term name'
),
),
I prefer using ‘field’=>’slug’ in such cases as term names are more likely to be changed.
And also change order by ‘title’ to ‘post_title’as Abhisek mentioned in the comment.
Related Posts:
- Saving Taxonomy Terms
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- How to filter out post type meta?
- Custom query to filter posts that have current post as a taxonomy [closed]
- Categories of custom taxonomy don’t show any posts
- How to Filter custom post type by taxonomy?
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- Display category filters for custom post type when category is shared by multiple post types
- Row actions for custom post types?
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- How to limit the number of terms (terms acts like categories)
- Custom Post Type – Taxonomy Dropdown Menu?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Taxonomy term in permalink
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- How would I leverage custom Taxonomies in this scenario?
- Title_save_pre – Simple problem that u know for sure
- Group list of posts by taxonomy and allow for pagination
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Ajax filter with custom taxonomies
- How to remove CPT comment feed from head?
- Disable WordPress Recognizing Path as Attachment
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Archive filter disappears on no results?
- Remove “Get Shortlink” button in admin of custom post type
- How do I display custom post types through a common taxonomy?
- Paginate_links won’t create the right links on a taxonomy filtered custom post type archive
- How to get Custom Post ID by adding filter to child theme’s function
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How to check if “is single” page
- Make a function to run only for CPTs
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Query Multiple Taxominies Across Multiple Post type’s
- How to detect filter in URL in Category page?
- Update permalinks when new category added to custom post type taxonomy
- Filtering WP_Query
- Taxonomy custom post type URL
- Custom post taxonomies as tax_query terms?
- Get related posts of child term of custom post type
- Filter term taxonomy metabox in custom post type
- How do I display the taxonomy for a custom post type in an array
- Suggested Post and Taxonomy structure
- Loop filtering Custom Post Types and/or Categories
- search suggest – filter post type
- Filtering posts list table
- Multiple tag cloud filtering
- Get url.com/post_type/taxonomy/term work!
- How does the filter post_updated_messages work?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Linking from CPT page to taxonomy.php
- Page not found for custom post type UI plugin and taxonomy
- Filter second dropdown (tax) based on first dropdown (cpt)
- How can I create an automatic drop down menu with my tags?
- How to define a term for custom taxonomy
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- REST filters only firing when I have a param set
- Custom taxonomy template shows 404 Error
- Custom Post Type API doesn’t show taxonomy or category array
- How to constrain the results to a specific post_type on tag archive page?
- Custom Post Type with modified permalink structure results in 404
- Problems making shortcode with custom post types and taxonomy
- Custom Post taxonomy template
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- How to use taxonomy term as permalink folder
- automatically select taxonomy based on post meta
- Display related CPT with custom taxonomy
- Custom permalink structure for custom post types including multiple taxonomy
- Dynamic page for nav items used as filters
- Filter posts by their related field’s custom field
- Custom post types not showing on the standard WordPress Category page
- Display 3 level taxonomies
- List posts that have the current url taxonomy
- Output all terms slugs for a loop filter
- If custom taxonomy exist on post?
- Apply pre_get_posts to specific custom post type in the admin area
- How to get all posts assigned to a taxonomy term only?
- Taxonomy’s title
- Filter between Custom Posts depending on meta_value
- How to show post which has the specific taxonomy terms?
- Displaying the Taxonomy and a Queried Term on a taxonomy.php page?
- Permalinks for a custom post type – with a page template (custom query) and taxonomy archive
- WordPress add taxonomies/terms list as a menu in archive page
- Filter wp_dropdown_categories Per Post Type
- add current-menu-item to multiple custom post types
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Custom Search not working
- Custom post type post taxonomies
- Problems with custom post type and hierarchical permalinks
- Structure of custom post type / taxonomy?
- Display associated taxonomy child name on single CPT page
- Issue On Listing Woocommerce Parent Tag List
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- How to add to taxonomies to a post type
- Filtering custom post types using category taxonomy
- Change CPT Edit Target Link for Admin List
- custom taxonomy not return in the code
- How do I get parameters from the URL?