Home › Forums › Front-end Issues › Displaying Multiple Values from Custom Taxonomy Terms › Reply To: Displaying Multiple Values from Custom Taxonomy Terms
The exact code to use will depend on what you’re returning from the image field.
Generally what you need to do is supply the right post_id value for the ACF field. This example will get the value in the image field.
$image = get_field('industry_image', $term->taxonomy.'_'.$term->term_id);
The image field documentation goes into more detail about displaying the image based on what you’re returning which can be an Object, URL or ID. http://www.advancedcustomfields.com/resources/image/
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.