Home › Forums › General Issues › Thumbnails for custom taxonomy categories › Reply To: Thumbnails for custom taxonomy categories
You should use wp_get_post_categories() to get the categories related to a post.
Inside the loop of terms you should use
$image = get_field('main_image', $category);
What you do with that depends on what you have the return value of the image field set to https://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!
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.