Support » Fixing WordPress » Category Description in Archives page (Hemingway)

  • Im trying to get the “category description” to show in the archives.php page underneath “Articles in ‘Only in Ireland'”. Please have a look to this link: http://singularity.bohoe.com/archives/category/only-in-ireland/
    (Im using Hemingway)

    I have tried a couple of things and read in the forum but cant seem to get it right.

    I would like to show it as follows:

    <?php if (have_posts()) : ?>
    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h1>Articles in ‘<?php echo single_cat_title(); ?>'</h1>
    [AND THE CAT_DESCRIPTION CODE TO SHOW HERE]

    Anyone?
    If there is a post resolving this, I missed it, so let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The following works for me when I need to show the category description for the category.

    <?php if (have_posts()) : ?>
    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h1>Articles in ‘<?php echo single_cat_title(); ?>'</h1>
    <p><?php echo category_description(single_cat_title()); ?></p>

    Thank you, thats just what I was looking for myself.

    One thing, when it brings up the description, its showing the catagory title name again, without any spacing after it, is there a way of this not showing on this line?

    I know its probably something simple, but I’m not that great with php.

    Thanks in advance.

    I’ve sorted it, now, sorry to trouble anyone reading. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category Description in Archives page (Hemingway)’ is closed to new replies.