Home › Forums › Backend Issues (wp-admin) › Need help from Custom location rules › Reply To: Need help from Custom location rules
I’m a little lost by your question. Is the taxonomy selected using the standard WP taxonomy meta box or is the term only selected in an acf taxonomy field?
If the term is selected using the standard wp taxonomy meta box then the value selected will be passed to your match function in the $screen arguments. Sorry, it has been a long time since I’ve created location rules and all of my examples use the old method.
If there the term is set with an acf taxonomy field then it is more difficult because the values of other fields are not sent in the ajax request.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.