Viewing 8 replies - 1 through 8 (of 8 total)
  • When you create a Page, the menu on the side is the same as a Post. So, if you want to Allow/Deny Comments, click on the Discussion side menu when you’re editing your Page and either check/uncheck “Allow Comments”

    Normally, it’s on by default.

    Thread Starter bigmarc250

    (@bigmarc250)

    i did that and no comment area is added.
    how do i add it?

    Was able to find your installation and registered to test something – sorry if I scared you…

    It looks like you’ve customized both templates (template changes when you’re logged in). What happens when you switch to the default template, does it allow comments on the Pages?

    Thread Starter bigmarc250

    (@bigmarc250)

    no it still does not allow it.

    No, it doesn’t. Normally, bloggers dont’t want comments on Pages like About or Contact.
    Usually, the default Page template (page.php) does NOT have the call for the comments.php template.
    Create another Page template (see Pages) and include the comment form. When creating Pages you can select which template to use to display it: with or without comments.

    …Hmm, guess I just learned something.

    I would like to create a comments section on a password protected page. (Actually I’m surprised comments aren’t a standard feature – on a blog – but there you go, what would I know?)

    I have assumed the index.php file has all the code I need as that is exactly what I want, so…

    – I copied the index file and called it page_with_comments.php
    – I added the 5 lines of code required to enable it to be seen under the Page Template drop down menu

    <?php
    /*
    Template Name: page with comments
    */
    ?>

    However the ‘Comments’ link to add comments is not displaying.

    How can I make it so that a page that is password protected can allow people to add comments.

    Thanks in advance.

    PS WP, would it be possible to include a ‘page with comments’ template as standard in the page drop down menu, along with any others and for weirdos like me who might want to do it in this fashion??

    It’s probably better to take the “Page template” as the starting point rather than the index page, because they have a slightly different makeup.

    Anyway, you need to add

    <?php comments_template(); ?>

    Before the endwhile of the post/page-displaying loop.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘add comments to page’ is closed to new replies.