12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Mar 28, 2022

Get Current Taxonomy and Term ID for Advanced Queries in Oxygen

Sridhar Katakam

This members-only tutorial provides the steps to set taxonomy and terms query params in Oxygen's Advanced Query to be dynamic/automatic.


There are multiple taxonomies each attached to multiple post types.


CPTs of interest: investigation besides the built-in post
Taxonomies: format, country, company
A sample term of the format taxonomy: podcast


When viewing a term archive page of any of the above taxonomies, for example:


a) show the items of a specific post type, say post that have the current term of the current taxonomy in a custom loop.


show posts that have been marked as podcast format.

b) show the items of a different post type, investigation that have the current term and current taxonomy in another custom loop.


show investigations that have been marked as podcast format.

c) have a single Template for all the taxonomies.


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.