This code will help:
<?php
if (function_exists('get_wp_term_image'))
{
$term_id = $GLOBALS['cat'];
$meta_image = get_wp_term_image($term_id);
//It will give category/term image url
}
echo '<div align="center"><img src="' . $meta_image . '" alt="" ></div>';
?>
Hey thanks!
I’v try it and it works brilliant!
But what if I want to display two images based categories\taxonomies,
one for ‘subject’ (animals, object, etc.)and other for ‘level’ (easy\hard)
in two different locations, but for the same post?
Thanks again:)