Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Is it possible to create Query Loop based on 2 categories? or 2 differet tax?

Home / Forums / Kadence Blocks / Is it possible to create Query Loop based on 2 categories? or 2 differet tax?

This topic is: Resolved
[Resolved]
Posted in: Kadence Blocks
December 10, 2024 at 2:54 pm

I need to create a query to display posts based on the posts being in either two categories, OR 1 category and a 2nd custom taxonomy?
I am working with medical trials as a custom post types. I have two taxonomies, Category and Trial Status.

In Category we have Memory, Migraines, Parkinsons, etc.
In Trial Status I have Current or Previous.

I need to create queries to display all trials in Memory studies that are current… All trials in Migraines that are current, etc
and then the same for Previous trials.

We have specific wants for the page slugs, so I am using pages with query loops to display each grouping.

I want the query to be either in category MEMORY and category CURRENT (it must be in both)

OR in the Category MEMORY and in the Trial Status = CURRENT

Can you show me how to do that?
Thamk you.

  • The forum ‘Kadence Blocks’ is closed to new topics and replies.