Comment On Wordpress Pages?

6 replies
Hi everyone,

I'm wondering how to make it possible to post comments on a Wordpress page?

When I create a new page, I check the box saying "allow comments," but there's no comment box appearing. Is there a setting somewhere to achieve this, or are comments only allowed on posts?
#comment #pages #wordpress
  • Profile picture of the author Christian Sawyer
    Hi Alex,

    This probably has something to do with your theme's page.php.

    In this page.php it must call to include the comments and a comment form. This include is probably missing from the page, but don't worry you can add it in.

    Feel free to contact me via any of the IM services to the left of this post and I can try to assist you. Preferably Skype or Yahoo IM.

    -Christian
    {{ DiscussionBoard.errors[1319313].message }}
  • Profile picture of the author The Pension Guy
    It depends on the page template you are using in your theme.
    The default Page template in any theme should be named "page.php" (check your theme folder).
    No, you can NOT change it with settings, you need to edit the template file(s).

    Normally, people don't want comments on Pages like AboutUs or Contact etc. so theme designers by default leave put the call for the comment template.

    You can always add it to your page.php - just open your single.php and watch for this line (or similar):
    <?php comments_template(); // Get wp-comments.php template ?>
    then copy it over into page.php

    Note. If you have only one Page Template (page.php) the above line will add the comment form to ALL your WP Pages.
    If you want to avoid it, create additional Page template(s) and while writing/editing the Pages select the proper template (with or without comments, as you need them). When you have more than one Page template, the template option will show in your admin panel.

    Learn more about creating your own Page templates:
    Pages WordPress Codex
    Signature

    {{ DiscussionBoard.errors[1319331].message }}
  • Profile picture of the author Kris Turner
    Thanks for the advice, guys.

    Am I looking for a page called "single.php"? I don't see one. Or am I missing something? It would be nice if I can just copy and paste something into my "page.php" file and enable comments.

    It's for a launch blog, so this whole set up is only temporary, and I'd really like for comments to be allowed on pages.
    Signature

    {{ DiscussionBoard.errors[1319371].message }}
    • Profile picture of the author Christian Sawyer
      Originally Posted by Alex Taylor View Post

      Thanks for the advice, guys.

      Am I looking for a page called "single.php"? I don't see one. Or am I missing something? It would be nice if I can just copy and paste something into my "page.php" file and enable comments.

      It's for a launch blog, so this whole set up is only temporary, and I'd really like for comments to be allowed on pages.
      As stated above, the code to be placed into your page.php file is:

      <?php comments_template(); ?>

      Be careful as this most likely will need to be put within a div tag.

      That should display comments and the comment form as long as your theme has a comments template file.

      -Christian
      {{ DiscussionBoard.errors[1319386].message }}
  • Profile picture of the author Kris Turner
    Thanks, Christian!
    Signature

    {{ DiscussionBoard.errors[1319444].message }}

Trending Topics