WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Disable summary in a single categories (3 posts)

  1. Stef
    Member
    Posted 3 years ago #

    Hi!
    I was wondering how I can disable the summary in just a single category. Summaries on the homepage, or other categories and the archive are fine, but I want to get rid of summaries in my "media" category. How can I achieve that?

    Thanks a lot in advance!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Use the is_category() conditional in your theme's category template file. Eg:

    <php if( !is_category('media') ) the_excerpt();?>

  3. Stef
    Member
    Posted 3 years ago #

    I worked! Thanks! I had to change some more, but it's fine now :)

Topic Closed

This topic has been closed to new replies.

About this Topic