Can comments by a logged-in user be displayed at the top?
Can comments by a logged-in user be displayed at the top?
Can comments by a logged-in user be displayed at the top?
Display complete comment section via post ID
The desired results mentioned in the question were achieved by using the wp_schedule_event() function, now: The user always sees the “awaiting moderation” message without experiencing any delay. The API requests happen without the users experiencing delay, they happen asynchronously when anyone visits the page and the time interval given as argument to the wp_schedule_event() has … Read more
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
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