WordPress.org

Ready to get started?Download WordPress

Forums

Comments not showing on pages (6 posts)

  1. mundomariah
    Member
    Posted 3 years ago #

    Hi, I changed my theme like a month ago, and I noticed that in these new one, comments are not being showed on pages (even though they exist). I didn't know too much of php so... should I need to add some code o something else? For example, this page has pingbacks and a comment, but there is no visible...

  2. Thejas Kamath
    Member
    Posted 3 years ago #

    Find the following code in page.php file

    <?php the_content(); ?>

    and replace it with following one.

    <?php the_content(); ?>
    <?php comments_template(); ?>

    Thanks

  3. mundomariah
    Member
    Posted 3 years ago #

    T-H-A-N-K-S Thejas Kamath. You really saved me! :p

  4. Thejas Kamath
    Member
    Posted 3 years ago #

    @mundomariah

    Your welcome! My job is just helping you. However, if you have found out your answer, please change the status of this thread as RESOLVED!

    Thanks

  5. rmmiles
    Member
    Posted 3 years ago #

    Here's a really dumb question, where do you find the page.php file?

  6. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    normally in the wp-content/themes/yourthemename folder; on the side of index.php, style.css, and other files;

    however, not all themes have a page.php, as the same function could be done by index.php, according to template hierarchy:

    http://codex.wordpress.org/Template_Hierarchy
    http://codex.wordpress.org/Theme_Development

Topic Closed

This topic has been closed to new replies.

About this Topic