Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ssalustri

    (@ssalustri)

    UPDATE: running wp_debug show this error -> Undefined variable: comment_by_type in /…/child-theme/comments.php

    Plugin Author Bainternet

    (@bainternet)

    As you can see its an error caused by your theme.

    I have the same problem; trying to find a way to fix it. (I hand-coded my WP theme, so there might be some bit missing.)

    ssalustri, post an update if you already fixed it!

    I am having the same problem. I am using a Child theme with Genesis Framework. Can anyone suggest how to fix this?

    Plugin Author Bainternet

    (@bainternet)

    Set wp_debug to true and see what errors you get and where they come from, report back and I’ll try to help.

    Sorry I am bit naive on coding part. Please tell me how to set wp_debug to true.

    Plugin Author Bainternet

    (@bainternet)

    @bainternet

    i checked with wp_debug and i get the following message:

    Notice: Undefined variable: post in /wp-content/themes/point/comments.php on line 27

    Notice: Trying to get property of non-object in /wp-content/themes/point/comments.php on line 27

    Notice: Undefined variable: post in /wp-content/themes/point/comments.php on line 34

    Notice: Trying to get property of non-object in /wp-content/themes/point/comments.php on line 34

    ———————————————-
    this are the code lines of the mentioned comments.php file line 26 to 35

    <?php else : // this is displayed if there are no comments so far ?>
    <?php if (‘open’ == $post->comment_status) : ?>
    <!– If comments are open, but there are no comments. –>
    <?php else : // comments are closed ?>
    <!– If comments are closed. –>
    <p class=”nocomments”></p>
    <?php endif; ?>
    <?php endif; ?>
    <?php if (‘open’ == $post->comment_status) : ?>
    <div class=”bordersperator2″></div>

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WordPress Comments are not showing’ is closed to new replies.