Comment Reply javascript
You should really use comment_form() instead of rolling your own. Still, if you must, make sure that: The textarea has id=”comment”. The wrapping container around the entire comment form (probably a DIV) has id=”respond”.
You should really use comment_form() instead of rolling your own. Still, if you must, make sure that: The textarea has id=”comment”. The wrapping container around the entire comment form (probably a DIV) has id=”respond”.
You could probably just create a new page in WordPress, and give that page a custom template. Then the url would just be whatever it normally would be to get to that page. The only difference is that the custom template you are using would be setup to accept the comment_id via the querystring, and … Read more
It looks like Lester Chan has created a plugin that creates pagination for comments. Take a look at WP-CommentNavi 1.10 Lester Chan has created many good plugins.
I’ve often thought this would make a good feature, though I’ve never seen a plugin for it. I think the term “comment” is probably throwing off your search. I wouldn’t think that this would be stored as a comment internally, but rather as metadata for the post. I did a search for plugins using the … Read more
I don’t know why somebody downvoted this question. This is a GREAT question. Yeah, that’s totally possible. What you would want to do is use comment_meta to store the titles. You could add the new field into the form using the ‘comment_form_top’ action. It runs before name, email, and url, and still runs if the … Read more
MyISAM locks the whole page for writes and is not ACID compliant, while InnoDB sticks to locking rows as you point out, and is ACID compliant. This makes it sturdier when you’ve a lot of writes, as in faster and less prone to data corruption. It’s slower for reads in my experience, though it handles … Read more
You are missing a “NOT” logical operator (!) in your if statement. You want to say “if comment author IS NOT empty”. As of now, the function is reading that the author is not empty and defaulting to your else statement that tells it to output the author’s full name. Use the second block of … Read more
You can use the function paginate_links() for any pagination. For your specific case: $total = $wpdb->get_var(” SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE user_id = $thisauthor->ID AND comment_post_id = ID AND comment_approved = 1 “); $comments_per_page = 100; $page = isset( $_GET[‘cpage’] ) ? abs( (int) $_GET[‘cpage’] ) : 1; echo paginate_links( array( ‘base’ => add_query_arg( ‘cpage’, … Read more
Not quite; the redirect occurs inline inside wp-comments-post.php Use the filter comment_post_redirect to pass back any URL of your choice. Arguments passed are the default redirect & comment object, respectively. Based on your comments, here’s a suggestion: function wpse_58613_comment_redirect( $location ) { if ( isset( $_POST[‘my_redirect_to’] ) ) // Don’t use “redirect_to”, internal WP var … Read more
There’s a great article explaining how to hook into 2 filters for this at https://web.archive.org/web/20200216075253/http://www.sourcexpress.com/customize-wordpress-comment-notification-emails/ To send your notifications to a particular user and not the site admin, try this for a user with ID 123: function se_comment_moderation_recipients( $emails, $comment_id ) { $comment = get_comment( $comment_id ); $post = get_post( $comment->comment_post_ID ); $user = get_user_by( … Read more