Aleš Sýkora wrote

Oxygen Taxonom Query multiple taxonomies and terms

4. 11. 2021 in

You can use tax query when using Oxygen advanced query builder. If you want to display posts in categories in multiple taxonomies, you need to set it up right.

  1. Add tax_query
  2. Add relation AND | OR
  3. Add tax_query arrays

When you do this in code, it will look like this:

'tax_query' => array(
    'relation' => 'AND',
     array(
       'taxonomy' => 'category',
       .....
     ),
     array(
       'taxonomy' => 'businessunit',
       ....
     )
  )

When using oxygen, you need to construct it like this:

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
Multistep form with Toolset Forms and Bootstrap Accordion
19. 9. 2018 in
Need to make long form simple to use? Use the accordion module from bootstrap and Toolset forms. Try it now! We provide you code snippets & easy tutorial.
Read More
Aleš Sýkora wrote
Translate Step status in multistep Fluent Form
If you need to translate the “Step 1 of xx” in fluent forms, you can use this filter to do that. Just put it in your code snippets plugin and change the ‘Step’ and ‘of’ to needed words.
Read More
Aleš Sýkora wrote
Emoji deleted from ACF field after saving
2. 4. 2021 in
So you have a ACF text field and you are trying to insert emoji to it. For example as a category icon. You add the field, add the emoji, use the PHP code to display the field. And emoji is missing. After that you found that every time you save the page, emoji dissapear from […]
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram