diff --git a/comments.php b/comments.php index 733b925..e824b57 100644 --- a/comments.php +++ b/comments.php @@ -8,7 +8,7 @@ if (post_password_required()) { } ?> -
', + 'class_form' => 'comment-form mb-4', + 'class_submit' => 'btn btn-secondary fw-bold text-uppercase mt-3 px-4 py-2', + 'title_reply_before' => '',
+ 'author' => '',
'email' => ' ',
'url' => '',
),
@@ -32,7 +32,7 @@ if (post_password_required()) {
?>
-
-
-
-
-
+
+
+
-
+ $prev_post = get_previous_post();
+ $next_post = get_next_post();
+ if (!empty($prev_post) || !empty($next_post)):
+ ?>
+
+
+
+ if (!empty($prev_post)) {
+ $post = $prev_post;
+ setup_postdata($post);
+ get_template_part('template-parts/content', 'card');
+ }
+ if (!empty($next_post)) {
+ $post = $next_post;
+ setup_postdata($post);
+ get_template_part('template-parts/content', 'card');
+ }
+
+ $post = $original_post;
+ wp_reset_postdata();
+ ?>
+
+
+
+
+
', 'title_reply_after' => '
', - 'comment_field' => '', + 'comment_field' => '', 'fields' => array( - 'author' => '+
?>
More Articles
+