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
- get_terms by custom post type
- Filter by custom field in custom post type on admin page
- Get the first post term
- Creating “static” taxonomies to choose from, inside custom post type?
- How do I dynamically populate wp_nav_menu from a custom taxonomy?
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- wp_insert_term doesn’t work with custom post type’s taxonomy
- WP Admin default view mode for Custom Post Type
- It is possible to get a list of post types asociated to a taxonomy?
- Make the ‘all’ filter default instead of ‘mine’ in a custom post type
- How can you make permalink work for custom post type and taxonomy?
- Exclude custom function content from certain pages
- Filter get_categories() for taxonomy term in WordPress
- How to get the parent’s taxonomy?
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Same base slug for CPT post and CPT taxonomy terms
- wp_insert_post custom taxonomy
- Taxonomy-{taxnonomy}.php is not working
- Get list of terms of current taxonomy archive for another taxonomy
- Post Link Filter Help [closed]
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Add $more_link_text parameter to the_excerpt()
- Show Post Count of a Category
- Menu Multiple Taxonomies
- How to make a custom taxonomy selectable in post publish area?
- get_terms showing all categories instead of the ones assigned to a specific post
- Create Custom Post Type Permalink Structure
- Filter categories of posts with checkboxes
- Custom page template for category taxonomy
- How can I display an archive of only one category of my custom post type?
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- How do I get array of types associated with a taxonomy?
- Setting proper query for multiple custom admin filters
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Display all posts in main category and 1 subcategory
- Show category ID on custom post type
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- How can I see a list of my Custom Post Types of the last term I was in?
- Is using taxonomies the way to go here or would custom post types be better?
- filter custom post type by meta key in dashboard
- How to filter wp_list_categories output with some custom post type meta query?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- creat filter with wp_query
- Display a grid of taxonomy terms at root taxonomy page
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Categories filtering in new post
- Unable to link categories to custom post type using standard function
- wordpress remove views from action links in a custom post
- Enable taxonomies by post type in an array of CPTs
- 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
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- sortable columns for multiple custom post types not working
- Remove categories taxonomy from custom post type
- Changing CPT slug and taxonomy already registered in parent theme
- Shortcode to return single custom post based on post taxonomy
- Custom Taxonomy Terms in Menu lead to which page?
- Display 1 Post per taxonomy with polylang
- Is possible register two archive pages for single custom post type?
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- Can I use the ‘category’ taxonomy for both posts and a custom post type?
- Display custom post front end filter by ACF equals current user
- CPT : Next or Previous term link when has not adjacent post
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Best way to fix bad count on All | Mine | Published
- Display Custom Post Type Based on Taxonomy With WP_Query()
- How do i enable categories for my custom post type?
- Custom taxonomy returns 404 even with saving permalinks
- How to add CSS class field in Custom Taxonomy?
- Taxonomy doesn’t follow slug permalink structure
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- How to manage a dynamic multi-level page hierearchy system?
- Get name CPT with slug taxonomy
- Categories manage
- Filtering custom post using Ajax and taxonomies, keep getting 0
- Changing an item in drop down after 5 latest posts per taxonomy
- Query for a custom post taxonomy
- Update Cateogory Taxonomy Count for Attachment Post Type
- Grouping and paging CPT events by month with custom field date
- Adding Information To All Posts Screen
- get children from current variable (taxonomy) via shortcode
- Related posts by taxonomy [duplicate]
- List all posts from custom post type by taxonomy
- Single and Archive Pages with Custom Post Type
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Add post id to url instead of WordPress default -2 suffix
- Taxonomy Archive URL + Template