PLEASE HELP!:Getting a category description in theme (2 posts)

  1. gian132
    Posted 7 years ago #

    Hey everyone,

    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(); ?>
    			<?php else : ?>
    		<h2>About the archives</h2>
    		<div class="featured">
    			Welcome to the archives here at <?php bloginfo('name'); ?>. Have a look around.

    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.

    Any ideas?

  2. gian132
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic