In your tax_query array you need to add the keys as well as the values.
So…
'tax_query' => array(
array(
'taxonomy' => 'event_specific',
'field' => 'slug',
'terms' => 'main-event'
)
)
Related Posts:
- “tax_query” parameter not working with WP_Query
- Custom Taxonomy and Tax_Query
- pre_get_posts with tax_query causes empty result
- Including all terms in wordpress tax_query
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- search query within custom taxonomy term, post title and meta field
- tax_query not working on main query
- Ordering Posts with Custom Taxonomy Terms Array
- List taxonomy / category count showing list published posts only
- why do drafts return as part of wp_query?
- Dynamically tax_query terms
- How to output content based on same custom taxonomy?
- How do I sort posts by custom taxonomy?
- pre_get_posts Tax Query not working for custom author page
- Get pages only with a specific taxonomy
- How to add autocomplete to custom taxonomy for CPT
- Custom taxonomy query not working with switch_to_blog
- ‘wp’ action hook not firing in admin and login?
- Taxonomy archive showing no results
- Get taxonomy parent using child slug (from merged taxonomies)
- Manipulate WP Query using a custom post type and multiple tax_query taxonomies
- Retrieve Custom Taxonomies according to posts selected
- Custom Taxonomy Not Working When added to WordPress Search
- Hiding taxonomies with no children WP_Query & tax_query
- Set tax_query conditionally with new WP_Query
- How to do a particular wp_query taxonomy search
- tax_query: Don’t show posts with parent term when they have a corresponding child term applied
- Create alphabetical Pagination for custom taxonomy?
- Custom arguments in WP_Query
- WP_Query tax_query – Show results if child has parent X
- how to access the $query variable inside taxonomy-xxx.php template file?
- how to use tax_query to apply both terms or one if one is empty
- Get Posts Related to Category By category id or slug
- Display just the Post’s parent Category, not child
- Tax-query on taxonomy doesn´t work
- how do you pull data from two taxonomies?
- WordPress Multiple Taxonomy Query
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Tax query array terms display out of order
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- How to limit posts to 1 from each term with tax_query?
- wp_get_object_terms count on taxonomies within an category archive
- Complex Taxonomy scheme
- How to use taxonomies on attachments with the new Media Library?
- Hierarchical taxonomy UI
- Filtering custom taxonomies
- Allowing specific users to only add posts using certain custom taxomy terms
- Edit tags page for hierarchical taxonomy doesn’t show taxonomies at all depths
- I want to load post content by categories using Ajax
- Get only the first term by taxonomy
- Hook to process a new taxonomy tag before it is created?
- Removing taxonomy base using WP rewrite
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- WP_insert_term how to insert multiple values as taxonomny term?
- How to include parent terms in hierarchical taxonomy URLs?
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- Custom taxonomy term as class?
- How to edit/remove a term that’s in multiple taxonomies?
- Improving WP_Query performance for multiple taxonomies
- Create Child Taxonomies
- WP_Query, tax_query and term_meta: How to?
- Operations with custom fields values in a loop
- How to insert an array of terms using wp_insert_term?
- How to get custom post type taxonomy
- remove sanitize_title() for register_taxonomy()
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- has_term if/echo else/echo function
- add hirarchy of categories in products grid of visual composer
- Custom taxonomy for Media Library
- How do I return all terms from multiple taxonomies?
- Make child taxonomy categories use a set template
- Copy/clone/associate Custom field to Custom Taxonomy
- Query posts using custom taxonomy and selected terms
- Load a certain functions file for a certain taxonomy
- one post per term taxonomy
- tax_query (if the terms are empty)
- How do I get the labels from a post
- Hide custom taxonomy from easy admin
- Add file attachments/meta to a custom Taxonomy
- Displaying user selected custom tags/taxonomies on the front-end
- Running a function only once when a taxonomy term is changed
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Wp_insert_term doesn’t work from separate file with custom taxonomy
- How to create filter’s for custom taxonomy page
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Modify title of custom taxonomy archive page
- Catchable fatal error: Object of class WP_Error
- Templates files for custom post type with custom tags
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- taxonomy query on front page
- Pagination with custom query (not using posts)
- What’s the proper WordPress URL for the template of my custom taxonomy?
- WordPress show posts from children terms of a taxonomy term
- How to randomise a custom taxonomy tag cloud
- query posts returns 10 records
- How to add/enqueue Custom CSS for a custom taxonomy page?