Home › Forums › ACF PRO › Show Field group only on certain ancestry level › Reply To: Show Field group only on certain ancestry level
You need to create a custom location rule.
I did this a long time ago, but I do not think it will still work. It uses the old method of creating location rules and not the new method. Most of the code is probably okay but I think that the rule operators and rule values code would need to be updated, I have not tested it in a long time. https://github.com/Hube2/acf-filters-and-functions/blob/master/page-nth-level-location-rule.php
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.