witam serdecznie, korzystam z takiego kodu do wypisani komentarzy:
$post = get_posts();
$args = array(
'post_id' => $post->ID // use user_id
);
$comments = get_comments($args);
foreach($comments as $comment) :
echo($comment->comment_author . ' _ ' . $comment->comment_content. '<br />');
endforeach;
problem polega na tym że jeżeli chce wyświetlić także forme do pisania komentarzy tym kodem:
$comments_args = array(
// Change the title of send button
'label_submit' => __( 'Send', 'textdomain' ),
// Change the title of the reply section
'title_reply' => __( 'Write a Reply or Comment', 'textdomain' ),
// Remove "Text or HTML to be displayed after the set of comment fields".
'comment_notes_after' => '',
// Redefine your own textarea (the comment body).
'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><br /><textarea id="comment" name="comment" aria-required="true"></textarea></p>',
);
comment_form($comments_args);
to nie wyświetla się ona
ale jeżeli usune kod, który wypisuje komentarze to forma działa, o co mozę chodzić?