Support » Plugins » Adding a custom introduction to articles in ONE category

  • Resolved blakekr

    (@blakekr)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    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;?>

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a custom introduction to articles in ONE category’ is closed to new replies.