sshilo, I actually found a fix for this. It’s not most elegant setup, I’m no PHP expert, but it works.
<?php // Get current category ID on category page
function getCurrentCatID(){
global $wp_query;
if(is_category() || is_single()){
$cat_ID = get_query_var('cat');
}
return $cat_ID;
}
$currentCat = getCurrentCatID();
// Loop through all categories with the rich text descriptions, and display the category description for the current category
$explorers = get_categories('hide_empty=0&child_of=13');
foreach ($explorers as $cat) {
if($cat->cat_ID == $currentCat) {
if ($cat->category_description != '') {
echo '<div class="category-desc-entry clearfix">'.$cat->category_description.'</div>';
} else {
echo '<div class="category-desc-entry clearfix"><p>No description has been entered for this explorers. <a href="'.wp_login_url().'">Log in</a> and go to <strong>Posts > Categories</strong> to add descriptions.</p></div>';
}
}
} ?>
I used this to display the category description on a category page. It seems that if you call the category description from a get_categories loop, using ->category_description it will include images. I’m sure there’s a way to take this and rewrite the category_description() function; but I’ll leave that up to a more seasoned programmer.
I hope this helps.