• Is there any way I can make WP (1.5) display the description of a category as a sticky blurb when you list all posts in a category?

    Say I have a category called Interviews. When I click on the category link and it displays the posts in that category, I’d like the description of the category displayed first and then the posts displayed after the blurb.

    Is this possible? I’ve been reading everywhere and racking my brain, but this is my first in-depth site build with WP, so I’m not as familar as some of you veterans here.

    Any help would be greatly appreciated. Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have this in my archive template (archive.php) before the post loop (if( have_posts() )):
    <?php if ( is_category() ) { ?>
    <h1><?php single_cat_title(); ?></h1>
    <?php echo category_description(); ?>

    <?php } ?>
    It at least works for me

    You could use this template tag. You most probably need to use category.php or I guess you could could put it inside conditional tags in index.php if you don’t have category.php.

    Thread Starter armageddondesign

    (@armageddondesign)

    Minna,

    Thank you VERY much. That works perfectly. 😀

    The launch of the site I’m working on is tonight, so I’ll be posting the link tomorrow, so everyone can see what I’ve been trying to get help with for 2 weeks. 😀

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Display category description?’ is closed to new replies.