Aleš Sýkora wrote

Custom Taxonomy Term Archive Query in Oxygen Builder

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 =
  • (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"]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Tracking events with Google Tag manager & WordPress
23. 8. 2019 in
Add numbers to your content with Google Tag Manager & Google Analytics Events.
Read More
Aleš Sýkora wrote
Oxygen Pro Menu menu selector – workaround fix on multisite
9. 8. 2021 in ,
Symptoms: Pro menu on multisite doesn’t show the WordPress menus in select field. Unfortunately, this is a known issue when using the Pro Menu element on a multisite install. There is a workaround by manually adding the ID of the menu you want to display to the page or template shortcodes. To do this, add […]
Read More
Aleš Sýkora wrote
Shortcode to display word count or reading time
1. 7. 2019 in
This shortcode "word-count" will display a count of words for whatever content is passed, and can optionally display an estimated reading time.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram