Im using the theme 4u, based on hemingway.
I’ve added the loop below to archives.php so that when categories are looked up, category descriptions will appear.
<div class="secondary"> <?php /* If this is a category archive */ if (is_category()) : ?> <h2><?php echo single_cat_title(); ?></h2> <div class="featured"> <php echo category_description(); ?> </div> <?php else : ?> <h2>About the archives</h2> <div class="featured"> Welcome to the archives here at <?php bloginfo('name'); ?>. Have a look around. </div>
Only things is… they don’t!
The category title is displayed but the <php echo category_description(); ?> is completely ignored and there is just a blank space when I am browsing any category.
- The topic ‘PLEASE HELP!:Getting a category description in theme’ is closed to new replies.