ThemeShaper Forums » Thematic

Enabling comments on a page

(3 posts)
  • Started 9 years ago by heather
  • Latest reply from lolo92
  • This topic is resolved
  1. heather


    I'm don't understand what I am supposed to do to enable comments on one particular page while keeping it disabled for others.

    <?php if ( get_post_custom_values('comments') ) comments_template() // Add a key+value of "comments" to enable comments on this page ?>

    I would appreciate any help.


    Posted 9 years ago #
  2. This is something I've gladly inherited from The Sandbox. Here's the documentation from the Sandbox readme:

    Comments are not displayed on pages by default, but are displayed on posts, per the current convention. You can enable comments on a per page basis by adding a custom key/value with only the text comments.

    To enable comments on a page:

    1. In the Write › Page menu, expand the Custom Fields box
    2. In the Custom Fields box, add a new key with the exact text comments
    3. Add any text for a value (some text must be included for the key to save)
    4. Click Add Custom Field to save the key/value
    5. Comments should now be enabled on that page

    Enabling comments simply includes the comments.php file with the page. You can turn off comments on a page by deleting the comments key/value. This does not delete any exisiting comments, but simply disables comments.php from loading with the page.

    Posted 9 years ago #
  3. lolo92


    What should I do to have all comments displayed on the main page ?
    Custom fields added on a post are not displaying the comments when I'm on the index page.

    Thanks a lot !

    Posted 8 years ago #

RSS feed for this topic


You must log in to post.