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
- Show only taxonomy types terms associated with a custom post type in WordPress PHP
- How to Filter the Custom term loop based on dropdown
- creat filter with wp_query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- list taxonomies from a custom post type
- Display a grid of taxonomy terms at root taxonomy page
- How can I made custom taxonomies relationship?
- WooCommerce sort products by the actual product width(not the shipping width)
- Show child custom post types list inside single parent custom post type
- limit value taxonomy based on previous taxonomy value wordpress
- How to change the post type a theme shows by default?
- filter custom post in rest api with custom function
- Several post types on WP Query by tag and taxonomy
- Using meta_query and tax_query at the same time
- How do I display the taxonomy for a custom post type in an array
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Set a CPT slug as a base name for all the taxonomies
- How to conditionally redirect to the post from a taxonomy page?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Sort and filter custom post type posts by custom taxonomy
- How do I display the grand child items of a taxonomy term?
- Taxonomies relations
- Versioned Custom Post Type (Not the same as revisions)
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Full Custom Post Type List Organised by two Taxonomies
- WordPress Doesn’t Generate Taxonomy Archive
- Suggested Post and Taxonomy structure
- Loop filtering Custom Post Types and/or Categories
- search suggest – filter post type
- the_content filter on some post types only not working
- Custom post with more than one custom taxonomy
- Get the taxonomy of a post hierarchically
- Adding custom taxonomy in same menu place with two custom post types
- How to make custom taxonomy into drop down select in a custom metabox
- Multiple pages for posts?
- Filtering posts list table
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Custom filter function not working with Custom post type
- How to get list of taxonomy slugs ordered parents>childs?
- Filter Posts from the Main Query
- Categories filtering in new post
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- How do I share categories across multiple post types?
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Multiple tag cloud filtering
- How to use manage_$post_type_posts_columns with underscore in post type?
- Get url.com/post_type/taxonomy/term work!
- How does the filter post_updated_messages work?
- Search filter triggered & sort by custom post type
- How to order posts of a custom post type by date DESC in dashboard Admin?
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- How to organise this data within WordPress
- Organize WordPress site, so it can maintain with huge database
- Review site custom post type structure
- Filter get_cat_id for Custom Post Type
- Different Category system needed for the Custom Post Type
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Redirect to another page using contact form 7? [closed]
- Output terms for custom post types
- Linking from CPT page to taxonomy.php
- How can I add a filter to a particular post format?
- Page not found for custom post type UI plugin and taxonomy
- Is there any way to get list of all possible filter hooks for all post types?
- Can I display custom post types in home.php or need page template?
- Unable to link categories to custom post type using standard function
- How to Set Taxonomy Object Description?
- Categories and tags for custom post types
- Create new custom post and post category of same name
- wordpress remove views from action links in a custom post
- Custom select query for taxonomies that have posts categorized in another taxonomy
- Enable taxonomies by post type in an array of CPTs
- How to assign tag to custom post type in wordpress?
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Rename a slug label
- Custom Taxonomy Category link
- wp_insert_post wrong post type [closed]
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- How to get all Custom Post Type Filtered by one Specific Taxonomy Term
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- How does the ‘the_post_navigation()’ work for CPT’s?
- Custom post type – list posts based on meta_key and display them divided by CPT taxonomy category
- Custom taxonomy (categories) on custom post type return no results
- Filter second dropdown (tax) based on first dropdown (cpt)
- Variable not working in WP_Query
- Hide meta box for everything BUT a certain custom post type
- Filter posts by tax (dropdown) and meta value
- Archive-posttype.php isn’t loaded
- get_category_link() for custom post type does not include custom slug rewrite?
- Add tags to custom post type without menu link