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

  1. Stef
    Posted 5 years ago #

    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 5 years ago #

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

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

  3. Stef
    Posted 5 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