Aleš Sýkora / November 28, 2023 / 4 comments

Custom Taxonomy Term Archive Query in Oxygen Builder

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…
example of tax query for archive pages of terms from taxonomy called mesto for CPT nabidka-prace

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. 🍻

4 comments

Share Your Thoughts