Home › Forums › Feature Requests › Post Category Parent Location Rule › Reply To: Post Category Parent Location Rule
I have added a post category ancestor location rule to my filters and functions, not exactly a parent category rule, but it does the same thing. It will not match on the category so if you want it to match the category or any of its decedents then you need to set up both in the location rules. Hope this helps. https://github.com/Hube2/acf-filters-and-functions/blob/master/acf-post-category-ancestor-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.