Home › Forums › General Issues › Category List with thumbnails › Reply To: Category List with thumbnails
The name of the taxonomy for tags is actually “post_tag” so getting the field could look something like this
$image = get_field('tag_img', 'post_tag_'.$tag->term_id);
however, a lot has changed in 2 years. You could also use
$image = get_field('tag_img', 'term_'.$tag->term_id);
or even
$image = get_field('tag_img', $tag);
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.