[resolved] Adding a custom introduction to articles in ONE category (3 posts)

  1. blakekr
    Posted 6 years ago #

    Does anyone know of a plugin or hack that will automatically add a custom introduction to any post I create in a particular category?

    There is one category on my site where the articles need a bit of explanation. I'd want the same intro text to appear on each page (only in this category). I have looked at a lot of ways to accomplish this, but not found anything really usable.

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    You could edit the category template (category.php, archive,php or index.php) to use the is_category() conditional.

    <?php if(is_category('Category Name')) :?>
    [additional text with appropriate markup]
    <?php endif;?>
  3. blakekr
    Posted 5 years ago #

    Hi Esmi -- I didn't see your response so many months ago. Thank you tons for your reply!

Topic Closed

This topic has been closed to new replies.

About this Topic