Beispiel #1
0
<div class="clearfix">
<?php 
if (have_comments()) {
    Thietkeweb::getComments(get_comments(['status' => 'approve', 'post_id' => get_the_id()]));
}
if (!comments_open()) {
    echo '<p class="no-comments">Comments are closed.</p>';
} else {
    comment_form();
}
?>
</div>