Hi there,
I added a small plugin ‘Category & taxonomy image’ to be able to add an image to a category.
I added an Element for the header, and selected ‘Post Category Archive for all categories’ as display rule.
On the page hero tab I set Background image to -featured image- with a fallback image.
But the category image I set with the plugin does not show up, only the fallback image.
This is code snippet I had to add for the plugin:
if (function_exists(‘get_wp_term_image’))
{ $meta_image = get_wp_term_image($term_id);
}
echo $meta_image; // category/term image url