[resolved] How to add a text header when selecting a category? (3 posts)

  1. tolpol
    Posted 7 years ago #

    I've got a travelblog, with a category assigned to every past voyage - this way you can click on any of the categories and see all posts I made during that particular trip.

    What I'd like to have is a short description of the trip showing up as a first undated block of text, on top of the listed posts - I don't seem to work out how to do this. Is it possible to do something like this? Maybe a plug-in?


  2. Edde Beket
    Posted 7 years ago #

    Categories have a description field (Manage -> Categories -> Click any existing category -> Update the Description field)

    In your template(s) add
    <?php echo category_description(); ?>
    to display the description.

    I must say this is untested, as I use it myself with a few selected categories:

    <?php echo category_description($catid); ?>

  3. tolpol
    Posted 7 years ago #

    That seems to do the trick - thanks !

Topic Closed

This topic has been closed to new replies.

About this Topic