filter for thumbnail not working for custom taxonomy term

I figured it out, in case anyone else needs it, it was really simple, and just used an elseif for when the id was not found & changed the custom field name to the custom taxonomy image field ( workplace_thumb ) for that taxonomy id. if ( ! function_exists(‘custom_subcategory_thumbnail’) ): remove_action(‘woocommerce_before_subcategory_title’, ‘woocommerce_subcategory_thumbnail’); add_action(‘woocommerce_before_subcategory_title’, ‘custom_subcategory_thumbnail’, 10, … Read more

Display term picture of each post in a loop

So, I finally found the solution. Maybe there are better ways to arrive to the same result, but at least, it works. Here it goes: <?php $terms = get_the_terms( $post->ID , ‘issues’ ); foreach ($terms as $key) : $size = “article-small”; $image_id = get_field(“image_tag”, $key, false); $image = wp_get_attachment_image_src($image_id, $size); ?> <img src=”<?php echo $image[0]; … Read more