bloggus
Member
Posted 2 years ago #
I'm just playing with a blank theme and if I have
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
it gives me no commets to show which it should.
If I change it to
<?php if ( empty($comments_by_type['comment']) ) : ?>
it shows comments. To be honest i'm confused!
Any luck? I am having the same issue.
lyeffeth
Member
Posted 2 years ago #
Try adding the this
<?php $comments_by_type = &separate_comments($comments); ?>
directly before
<?php if ( !empty($comments_by_type['comment']) ) : ?>
This worked for me except I am using
<?php if ( !empty($comments_by_type['pings']) ) : ?>
instead of
<?php if ( !empty($comments_by_type['comment']) ) : ?>
That worked for me as well but, I still posted this as I am curious why I would need to declare it.
Marcomail
Member
Posted 2 years ago #
Why in some blogs
<?php if ( !empty($comments_by_type['comment']) ) : ?>
it work alone, but in other is necessary add before
<?php $comments_by_type = &separate_comments($comments); ?
??
Great lyeffeth! it worked for my custom theme :) ...i'm using WP 3.0.1
Wiliam_Syd
Member
Posted 1 year ago #
Excellent.
This fixed comment issues I was having with arjuna-x 1.5.3
Thank you again.