Home Forums Backend Issues (wp-admin) Location rules not working


Location rules not working

  • I seem to spend ages trying to set location rules in ACF every time this is required.

    See attached file.

    The fields don’t show on the Contact us page but they still appear on FAQ and Review post types.

    I’m clearly not understanding how this works? Are you only able to set one rule?

    Thanks for any insight, I love ACF but this drives me insane everytime I try to do it and I end up hiding with CSS.


  • I think you want AND relationships on your rules instead of OR.

    For example, looking it the 3rd rule. Post Type is not equal to Review A post of type FAQ is not equal so this is true and the field group will be shown on the FAQ post type even with the rule above it.

    is not equal to is difficult to use by itself.

    For example, if you want this group to show up on pages except for contact us then you should use.

    Post Type is equal to Page
    Page is not equal to Contact Us

    This will also prevent the group from showing on Review and FAQ post types because they are eliminated by the first part of the location rule.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.