Multiple advanced location ANY rules

Support MB Conditional Logic Multiple advanced location ANY rules

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45969
    gildo@fattoriacreativa.it[email protected]
    Participant

    Hello, I have a problem with the Advanced Location Rules feature for multiple conditions. I created a custom field Event (Select Advanced type). I set the Location to Post type = Product and the rule "Show when ANY condition match" product_cat = cat1 OR product_cat = cat2. This way the system does not show the Event selector within the products of the selected categories. To obtain the desired behavior (show the Event field within the product pages belonging to the cat1 and cat2 categories), I had to create a custom function, called via "Advanced location rule" of the "Custom" type. How can I obtain the same result using the visual builder?

    #45974
    PeterPeter
    Moderator

    Hello,

    Advanced Location Rules is the extension MB Include Exclude. I check this feature on my demo site and see it is working properly. After selecting the product category, you will need to save and reload the page to show the field group on the editing product page.
    If you want to create a custom function, you can follow the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/#sample-code

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.