Two textareas showing up in comments.php

I found out why the two textareas were showing up: The comment_field is not supposed to be in the ‘fields’ array because it is a distinct parameter for the comment_form() function. It should be: ‘url’ => ‘<div class=”grid-1-3″>’ . ‘<input id=”url” placeholder=”Website (optional)” name=”url” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_url’] ) . ‘” size=”30″ /></div>’, )), … Read more

get only one last comment from each post

Constructing the SQL query: You can try the following: /** * Fetch comments’ IDs for the most recently commented posts * (only one comment per post) * * @param integer $count * @return array */ function get_cids_wpse ( $count = 5 ) { global $wpdb; $sql = “SELECT MAX( comment_ID ) as cid FROM {$wpdb->comments} … Read more

How to wrap comment_form $fields in one div?

The hook you’re using is correct, however, you don’t need to bloat it out so much. This simpler version will do exactly what you’re looking for, with much less lines. function wpse172052_comment_form_before_fields() { echo ‘<div class=”row”>’; } add_action(‘comment_form_before_fields’, ‘wpse172052_comment_form_before_fields’); function wpse172052_comment_form_after_fields() { echo ‘</div>’; } add_action(‘comment_form_after_fields’, ‘wpse172052_comment_form_after_fields’);

Exclude specific user_id from args in get_comments

Looks like I had to figure this one out myself. replace $comment_meta_args and $replies with global $wpdb; $comment_meta_args=”SELECT * FROM `$wpdb->comments` WHERE `comment_approved` = 1 AND `comment_parent` = (“. intval($parent_comment_id) .”) AND `user_id` != 1 ORDER BY comment_date ASC LIMIT 3″; $replies=$wpdb->get_results($comment_meta_args);

Can’t reply to comments [closed]

Try this Solution.This will surely helps you. Replace your wp-includes and wp-admin folder with WordPress’s core folder from WordPress package. May be you have problem with uploading these two folders and this may lead you that problem.

How do comments work?

Well, that “link back” might be a Trackback or Pingback. It´s a function to inform other blogs that you have “used”, mentioned or linked to their content. It´s made for connecting blogs with each other. Some themes show Track-/Pingbacks in the comment section, some don´t. Anyway, if you want to disable them, you can do … Read more