Home › Forums › Backend Issues (wp-admin) › Location rules not working › Reply To: Location rules not working
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 AND 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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.