Home › Forums › General Issues › Set rules per field? › Reply To: Set rules per field?
No, there isn’t a way in ACF to set location rules for specific fields.
But this can be accomplished using filters like this one https://www.advancedcustomfields.com/resources/acf-prepare_field/
Using that filter you do your own PHP to decide if the field should be displayed or not and return the field if it should or return false
if you don’t want the field shown.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.