WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Disabling comments on an individual category (2 posts)

  1. Jim Potter
    Member
    Posted 4 years ago #

    I understand how to turn off comment globally and I understand how to turn comments on on and off in individual posts, but how do I turn comments off and on for individual categories? In my design I have 7 categories and only want comments on one.

    Thanks
    Blind in one eye and can't see out of the other!

  2. Depending on the php code in your theme that grabs the comments and the number of the category you want the comments in( i.e., 1), something like this:

    <?php if (is_category('1')) { comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic