Support » Fixing WordPress » How to get comments in pages (not just posts)

  • shawjoej


    I’m using WordPress theme twenty twelve.

    I tried a few statements before the endwhile in the page.php.

    $withcomments = “1”;
    comments_template(); // Get wp-comments.php template ?>


    <?php comments_template( ”, true ); ?>


    <?php comments_template( ); ?>

    I’m not getting the desired result.

    Any ideas on a code snippet?


Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

    Do not edit the Twenty Twelve theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes. Or install a custom CSS plugin.



    Forum Moderator

    Twenty Twelve does show comments in pages by default, if the settings are set to allow comments;

    dashboard – settings – discussion

    dashboard – pages – all pages – quickedit – tick ‘allow comments’

    dasboard – pages – edit page – scroll to below the page editor; if there is no discussion field, tick the screen options’ tab near the top right, and tick ‘discussion’; then scroll down again…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get comments in pages (not just posts)’ is closed to new replies.