itthinx / decent-comments

Decent Comments shows what people say. Provides widgets, shortcodes and API to display comments including author avatars, links, comment excerpts.
Other
1 stars 3 forks source link

Threaded comments #2

Open Jon007 opened 7 years ago

Jon007 commented 7 years ago

Current version lists replies as a normal comment: should either omit replies (list only where comment_parent=0) or thread them, to avoid showing replies out of context.

Jon007 commented 7 years ago

FIX: there's a basic fix for getting the standard threaded output:

class-decent-comments-renderer.php l.354++ replace entire loop: foreach ( $comments as $comment) {

with standard wp function call: wp_list_comments( $options, $comments);

so the full output section, keeping the existing decent-comments wrapper tag would be:

$output .= '<div class="decent-comments">';
$output .= '<ul>';
$options['echo']=false;
$output .= wp_list_comments( $options, $comments);
$output .= '</ul>';
$output .= '</div>'; // .decent-comments