$wp_query->query_vars['taxonomy']
alone won’t do it, but yes, you can check the object itself.
However, something like is_tax()
may be more appropriate. A lot depends on context and you query is all but lacking in that.
Related Posts:
- Custom Taxonomy and Tax_Query
- Advanced Tax Query
- Improving WP_Query performance for multiple taxonomies
- Advanced Query Logic With Multiple Taxonomies
- WP_Query tax_query – Show results if child has parent X
- Query custom taxonomy for category including children
- Using wp_query is it possible to orderby taxonomy?
- How do I exclude a custom taxonomy from the post loop
- How to add images to taxonomies?
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- display posts with same taxonomy term
- How to get first post in a category of a custom taxonomy
- Display one post from each term in a custom taxonomy [closed]
- SQL QUERY needed to get POST category (taxonomy) ? – MUST be SQL statement
- 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
- Custom archive page based on array of categories and tags
- wp query with multiple taxonomy?
- On Taxonomy Template page, want to add Post_Type
- Page queried instead of a custom taxonomy
- Combine multiple custom user taxonomy in single url
- The next_posts_link() show me a aditional page in blank
- Help with a query not working with custom taxonomy
- why do drafts return as part of wp_query?
- WP_Query use for a filter with multiple Taxonomies and Terms
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- Paginated Taxonomy Term Archive including one post per term
- How can I display all post IDs from the taxonomy?
- Get ID and slug from taxonomy object
- WP Query with custom taxonomy
- how to search in custom fields & custom taxonomy for custom search
- How to display custom taxonomy in multiple columns?
- Custom taxonomies making WP very slow – Way to fix?
- Query Custom Post Type Order By Taxonomy Field
- Sorting taxonomy columns by meta value numeric
- Get Taxonmy Term ID For Current Post
- WP_Query on custom taxonomy works fine but fails if run through wp_ajax_
- Display sub categories and their data of a taxonomy
- How do I Use Multiple Loops with WP_Query?
- Changing stylesheet depending on custom taxonomy terms
- cannot get multiple loops using tax_query
- Custom taxonomy [year] is directing to yearly archive
- Get posts by term slug only
- Display all posts for taxonomy term across multiple custom post types
- Selecting all posts from the children of a particular parent taxonomy
- Taxonomies on custom taxonomies
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- Add Custom Taxonomy for Blog Meta Info
- Search Tool only refreshes Page without showing results
- Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?
- Set tax_query conditionally with new WP_Query
- querying posts by custom taxonomy terms right from a querystring based URL
- Custom taxonomy.php not working
- Query custom taxonomy by term id?
- How to add images to taxonomy terms? [duplicate]
- Exclude taxonomy term from all loops, but having it on widget
- Why can’t I use an array of term slugs in WP_Query?
- wp_query not resetting, last post hanging
- Problem with wordpress pagination
- How to do a particular wp_query taxonomy search
- Show only the sub-categories (and their content) of the current custom taxonomy with ‘taxonomy.php’
- Using Advanced Custom Fields Relationship Field to select a taxonomy term
- Custom arguments in WP_Query
- Wp_query…a type of term a different div
- Proper way to create taxonomy queries
- passing moree than one value of slugs in taxonomy using variable
- How to get related taxonomies based on a category with mysql query?
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Tracking the name of a custom taxonomy
- Add terms to a taxonomy archive from within the same taxonomy
- Is it possible to filter a taxonomy archive by other taxonomies that are on posts?
- Fill New Taxonomies
- Custom Taxonomies Archive Page 404
- Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies
- Taxonomy Terms That Don’t Exist Display Results
- Make relation of custom taxomies
- List active taxonomy terms
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- How do you search for a post by custom taxonomy?
- tax_query showing no results
- Next/Previous links in custom taxonomy, where item may belong to multiple terms
- How to query authors by custom taxonomy?
- How do you move custom fields to custom taxonomies using WP Queries
- Run next query based on first query’s term
- Get the original menu item name string instead of the label
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Order posts with custom taxonomy array
- Storing/querying custom date data
- Multiple loops on a Search result page?
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- Custom Taxonomy + JQuery Tabs
- Advanced AND tax_query in sidebar with 2 taxonomies
- How to query posts that are not related to any term of a taxonomy?
- Using wp_query is it possible to orderby taxonomy?
- WordPress Taxonomy Menu
- Get taxonomy image for Toolset custom taxonomy through Toolset Views Shortcode
- List posts grouped by children of a custom taxonomy
- Make custom post type display with custom taxonomy in url
- Loop posts without any taxonomy