Cant seem to display category description in archive.php
-
Hi all,
I am trying to display a category description in an archive page. The following code will display the category title in my archive page:
<?php if (have_posts()) { ?> <?php $post = $posts[0]; ?> <h2 class="title"> The Archive for <?php if (is_category()) { single_cat_title(); } elseif (is_tag()) { ?> posts tagged "<?php single_tag_title(); ?>" <? } elseif (is_day()) { the_time('F jS, Y'); } elseif (is_month()) { the_time('F, Y'); } elseif (is_year()) { the_time('Y'); } elseif (is_author()) { the_author(); } ?> </h2>
I have tried calling the category_description with no luck. Does anyone know a simple solution?
Thanks
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Cant seem to display category description in archive.php’ is closed to new replies.