“Or” logic for whitelists? | WordPress.org

[ad_1]

Hi there,

Is there any way to set up whitelists that obey “or” logic instead of “and” logic?

Use case:
We would like to add a woocommerce collections block that advertises trips we sell in Cambodia to all posts and pages that are about Cambodia. We have a post category “cambodia”, and static pages that match the URL condition “/destinations/cambodia*”
None of the posts in the Cambodia category contain “destinations/cambodia” in the URL.
I am currently using two ad inserter blocks, one that targets posts the cambodia category and another that targets static pages that match the URL condition above.

Is there a way for me to insert my html on both the posts in the desired category and the static pages that match the URL condition using only one of my ad inserter blocks?

Thanks in advance for your help!

Dave

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer