Home › Forums › General Issues › How can I apply an ACF field to a single custom post if it refers to the taxomy › Reply To: How can I apply an ACF field to a single custom post if it refers to the taxomy
The post ID when getting values from a taxonomy should be 'term_'.$term->id
A true false field returns either true or false, not yes or no.
if (get_field( 'disable_finger', 'term_' . $cater )
// field is set to true
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.