i have been trying to display category image by putting a image link in the category description area than calling the category description inside a img tag as the image src
now this does not work here is my code
<?php foreach(get_the_category() as $category)
{ $thecat = $category->cat_ID; } ?>
<?php $catImage = category_description($thecat); ?>
<?php echo $catImage ?>
<img src="<?php echo $catImage ?>" />
now <?php echo $catImage ?> this displays the category description text
but the image does not show because wordpress is putting some weird things in the call
any solutions or suggestions are greatly welcome
i am thankful in advance