WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Need code for inserting comments in pages (4 posts)

  1. raygene
    Member
    Posted 6 years ago #

    Hi,

    I would like to have the comment box on pages, as seen on the WP Classic theme.

    Is there code which can be inserted in any theme which would allow for comments? I'm now using the Coffee Stained 1.0 by Camden Bucey.

    Thanks,
    Gene

  2. Len
    Member
    Posted 6 years ago #

    <?php comments_template(); ?> calls the comment template. Study the differences between single.php and page.php in your theme to see the subtle difference.

  3. raygene
    Member
    Posted 6 years ago #

    Thanks LenK,

    So, if I get you correctly, all I need to do is insert (or modify) <?php comments_template(); ?> in the theme's page.php?

    Cheers,
    Gene

  4. raygene
    Member
    Posted 6 years ago #

    OK, took a chance and looked at both single (which didn't have the function) and inserted it. It now works great.

    You may see it here, in the About page

    Thanks again!
    Gene

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags