Home › Forums › Front-end Issues › How to retrieve for a post the taxonomities additional field? › Reply To: How to retrieve for a post the taxonomities additional field?
wp_get_post_terms()
https://codex.wordpress.org/Function_Reference/wp_get_post_terms to get the post categories. This will return an array and it will contain multiple categories if the post is in multiple categories, so you’ll need some way of deciding what category to use unless you make sure that only one is ever selected. Once you have the category
$hide_title = get_field('hide_title', $category->taxonomy.'_'.$category->term_id);
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.