Home › Forums › General Issues › Show taxonomy image on index page › Reply To: Show taxonomy image on index page
Hi @ruriko,
Thanks for the post.
To display the values from a Taxonomy term, you will need to add a string containing the the term’s taxonomy and ID in the following format; “{$term->taxonomy}_{$term->term_id}” as a second parameter to the get_field() function in order to target the term.
Instead of this, a term object can also be passed like so:
<p><?php the_field('field_name', $term); ?></p>
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.