gkMotion:
Thanks for taking an interest in this!
The “use_desc_for_title” is not really what I’m looking for. What it does is it outputs the Category Description as the title of the link, i.e. the text that shows up in a little box when you hover the link.
What I’m looking for is a way to output the description instead of the name of the Category as the actual link to that specific category.
MichaelH here on the forum has helped me out a bit with this.
His code does the trick I’m looking for, but only while in a Top Category, it returns nothing while in a sub-category.
<?php
$cat = get_query_var('cat');
$categories=get_categories('child_of='.$cat);
if ($categories) {
foreach($categories as $term) {
echo '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View %s" ), $term->description ) . '" ' . '>' . $term->description.'</a>';
}
}
?>
Any ideas are highly appreciated!
Thanks again!