Sending data from custom inputs in WordPress comment form in the admin notification email
Sending data from custom inputs in WordPress comment form in the admin notification email
Sending data from custom inputs in WordPress comment form in the admin notification email
Control panel loads slowly due to 2 slow queries on comment table
1. Using Plugins to disable Website field from comments There are many plugins available in the WordPress repository that remove the Website field from the blog comments. The most easy way is to install Remove Fields or Remove Comment Website/URL Box. https://wordpress.org/plugins/remove-fields/ 2. Editing the WordPress Files to remove the Website field from comments open … Read more
you can use this custom function in the functions.php of the theme: /** * count for trackback, pingback, comment, pings * * embed like this: * fb_comment_type_count(‘pings’); * fb_comment_type_count(‘comment’); */ if ( !function_exists(‘fb_comment_type_count’) ) { function fb_get_comment_type_count( $type=”all”, $zero = false, $one = false, $more = false, $post_id = 0) { global $cjd_comment_count_cache, $id, $post; … Read more
Hi @stubudz: You are trying to make things easy on me today, right? 🙂 Here’s what you need: $comment_counts = get_comment_count(); echo $comment_counts[‘approved’]; //print_r($comment_counts); // Uncomment to see all from get_comment_count()
Both display of comments and comment form should be handled in comments.php (or other template designated for that by theme). While comment_form() function does check if registration is required (and doesn’t output form to unregistered users in such case) wp_list_comments() does not perform such check, since it isn’t in line with native logic of this … Read more
Settings > Discussion > Other comment settings > uncheck Comment author must fill out name and e-mail Update Well, as far as WP is concerned these are glued together. You can add your own check for empty name, something like this (not tested): add_filter(‘preprocess_comment’, ‘require_comment_author’); function require_comment_author($commentdata) { if (” == $commentdata[‘comment_author’]) wp_die(‘Error: please enter … Read more
The last two hooks should specify 2 accepted arguments, not 1; add_action(‘comment_approved_’,’ymc_subscription_add’, 10, 2); add_action(‘comment_post’, ‘ymc_subscription_add’, 60, 2);
First, it would be very helpful to know what Theme you’re using, so that we can give specific instructions/advice. Without knowing what Theme you’re using, we have no way of knowing what template file(s) to tell you to edit; however, those links are likely coming from these two tags: previous_post_link() (Codex reference) and next_post_link() (Codex … Read more
Best plugin I’ve found is Editable Comments.