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

Advanced Query Loop Block Sorting logic for multiple options “OR” to “AND”

Home / Forums / Membership Forums / Advanced Query Loop Block Sorting logic for multiple options “OR” to “AND”

This topic is: Resolved
[Resolved]
November 28, 2023 at 1:27 pm

Thank you for introducing the new Advanced Query Loop Block!

I’ve encountered a limitation when sorting between multiple options, such as multiple taxonomies(Either dropdown, or checkboxes). By default, the logic between multiple sorting options appears to be set to “OR.” Is there a way to customize the logic to switch between “OR” and “AND” for how the Advanced Query Loop sorting options behave?

For instance, if I want to retrieve results only when sorting for posts that meet both of the following criteria: Videography (Taxonomy1) AND Weddings (Taxonomy2), it should display only Wedding Videography posts. Currently, it displays every Wedding post(Photography and videography) since it sorts as criteria1 OR criteria2 OR criteria3. But I want to fix that to criteria1 AND criteria2 AND criteria3.

Final user may expect to filter down options with multiple criteria.

Here is an example of the “Issue”:

Hope this makes sense

Thanks.

  • The forum ‘Membership Forums’ is closed to new topics and replies.