Aleš Sýkora / November 28, 2023 / 4 comments
Custom Taxonomy Term Archive Query in Oxygen Builder
1 min read / Custom Code, Oxygen Builder, Plugins, WordPress / Share on: Twitter, LinkedIn, Facebook
Post summary: If you want to use advanced query builder and build the template for All taxonomy terms of one taxonomy and do not use the default query in repeater, you can do that with advanced query builder: Post_type = post type slugtax_query = arraytaxonomy = taxonomy slugfield = slugterms = [oxygen data=”terms” taxonomy=”taxonomy-slug”](optional) no_found_rows = true(optional)…
If you want to use advanced query builder and build the template for All taxonomy terms of one taxonomy and do not use the default query in repeater, you can do that with advanced query builder:
- Post_type = post type slug
- tax_query = array
- taxonomy = taxonomy slug
- field = slug
- terms = [oxygen data=”terms” taxonomy=”taxonomy-slug”]
- (optional) no_found_rows = true
- (optional) orderby and more…
I is also possible to do with term id’s instead of slug:
- Post_type = post type slug
- tax_query = array
- taxonomy = taxonomy slug
- field = term_id
- terms =
[oxygen data="phpfunction" function="get_queried_object_id"]
Fuel my passion for writing with a beer🍺
Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻
Pavel
This helped me to solve the problem with incorrect output of events on the term page. Thank you so much!
Aleš Sýkora
Good! :)
Silas
Hey, can you please share your Shortcode which you used in the first Screenshot under terms. Its not compleatly readable. Thank You!!
Aleš Sýkora
[oxygen data=”terms” taxonomy=”taxonomy-slug”]