Home › Forums › General Issues › Field group at taxonomy does not work › Reply To: Field group at taxonomy does not work
@emcniece Thanks for the help the code did not work for me however your direction and the info on http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-taxonomy-term/ lead me to the code that did work.
<?php
$queried_object = get_queried_object();
$field = get_field('style_id', $queried_object);
echo '<pre>field: '.print_r( $field, true).'</pre>';
?>
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.