Thursday, March 24, 2022
The Great Tit
Updated: 20. 9. 2022, Added: 24. 3. 2022

Query all posts from category with category__in instead of tax_query in Oxygen Advanced Query builder

If you want query some posts from one category, you don't need to build the tax_query. You can use simpler solution, the category__in parameter.

For example, you need to show 3 latest posts from media-mentions category. So go to the administration and find your taxonomy id. Mine is 13 so I will use it like this:

How the whole query looks like?

Did I help you? Support me on Patreon!
Beep this article to your friends!

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.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram