Support » Fixing WordPress » Disabling comments on an individual category

  • Resolved Jim Potter


    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.

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

Viewing 1 replies (of 1 total)
  • Moderator Mark Ratledge


    Forum Moderator

    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 »'); } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Disabling comments on an individual category’ is closed to new replies.