• Hello,

    I am using roots theme first off.

    I have enabled comments on all pages by inserting

    <div id="wrap" class="container" role="document">
        <div id="content" class="row">
          <div id="main" class="<?php echo roots_main_class(); ?>" role="main">
            <?php include roots_template_path(); ?>
    
    <!--added to pull in comments-->
    <?php get_template_part('templates/comments'); ?>
    <!--end comments-->
    
    </div>

    into my base.php file to pull in the comments.php file.

    When I go into my page and post a comment (form is present and submit button) the page refreshes, but my comment doesn’t appear.

    However, the comment does appear in the comment area of the admin section. All comments do not require approval so they should just post automatically.

    One thing I did notice is that at the start of the form, above the comment box the form doesn’t show a name of who is logged in. It is blank:

    Logged in as.

    Any help would be amazing as I am going bonkers trying to figure it out.

    All time and effort with any helkpis massively appreciated.

    PS if I call in comment-template it works fine, shows posts, posters etc, the thing is I need to edit some things in the form, and editing the comment-template.php isn’t good practice, and also, not working.

  • The topic ‘Comments in dashboard, not on page’ is closed to new replies.