How can I get values count from wp_commentmeta?

Put the following function in your Theme’s functions.php and then put <?php echo tnc_reactions_count($post->ID); ?> in your single.php to output the numbers. Let me know if it works as I have not tested it completely. function tnc_reactions_count($post_id){ global $wpdb; $comments_table = $wpdb->prefix.’comments’; $commentsmeta_table = $wpdb->prefix.’commentmeta’; $get_post_comments = $wpdb->get_results( “SELECT * FROM $comments_table WHERE comment_post_ID=’$post_id'”, OBJECT … Read more

comment_form() Not changing the default class/id of elements

Those classes are being rendered inline because the id_form, class_form, and class_submit parameters should be placed within the $comments_args array (alongside title_reply, comment_field, etc) and not within the $fields array. See comment_form(). Also one last question, is there any way to re-arrange the order of the fields? Yes, the fields can be reordered. Here’s an … Read more

Create comments.php form of custom HTML code

The comment_form() function is pretty customizable, and it accepts a variety of arguments. Take a look at these sample arguments, you can modify them to fit your needs: $fields = array( ‘author’ => ‘<input name=”author” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) .'” size=”30″ placeholder=”‘.__(‘Your name’,’text-domain’).( $req ? ‘ (Required)’ : ” ).'”/>’, ’email’ => ‘<input … Read more

How to call my custom WordPress Comment form without getting the comments?

Yes, You can customize the comment form with the Bootstrap 4. You just need to do some edits with bootstrap classes and HTML. $args = array( ‘comment_field’ => ‘<p class=”comment-form-comment”><label for=”comment”>’ . _x( ‘Comment’, ‘noun’ ) . ‘</label><textarea id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’ ‘fields’ => apply_filters( ‘comment_form_default_fields’, array( ‘author’ => ‘<p class=”comment-form-author”>’ . ‘<label for=”author”>’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)