How to get taxonomy image in single.php?
ChatGPT answer worked: $categories = get_the_terms(get_the_ID(), ‘car-brand’); if ($categories && !is_wp_error($categories)) { // Assuming you have only one category per post, you can use the first one $category = $categories[0]; // Get the category image using ACF $category_image = get_field(‘am-brand-img’, $category); $size=”am-thumbnail”; $category_thumb = $category_image[‘sizes’][$size]; $category_country = get_field(‘am-brandcountry’, $category); $category_cimage = get_field(‘am-brandcimage’, $category); // Display … Read more