Questions tagged [comments]

Comments allow your website's visitors to have a discussion with you and each other. When you activate comments on a Page or post, WordPress inserts several text boxes after your content where users can submit their comments.

Filter by
Sorted by
Tagged with
36 votes
9 answers
11k views

Why do I get comment spam even with Akismet and Captcha?

I'm a bit perplexed why I keep getting so many spam comments ... Even though I use both the Akismet and WP-reCAPTCHA plugins on my WordPress blog! WP-reCAPTCHA should stop machine entered spam, but ...
user avatar
  • 2,095
32 votes
6 answers
38k views

Is there ANY way to remove comments function and section totally?

I don't want any comment querys to run. I don't wont anything about comments to be shown in wordpress admin area. Is this possible in any way? EDIT: Remove all links to the comments from admin bar, ...
user avatar
30 votes
10 answers
3k views

What tools are available for managing/writing to WordPress? [closed]

Aside from the actual WordPress dashboard, what tools are available for writing posts, moderating comments, and otherwise administering your site? Please identify whether you're referencing a desktop ...
24 votes
5 answers
28k views

How to rearrange fields in comment_form()

Im using a custom filter to change the fields, but can´t figure out how to change the order of the fields in the comment form. Desired order: comment field (first/top) name email website This is ...
user avatar
  • 343
21 votes
6 answers
7k views

setting comments off as default for pages and custom post types?

I want to turn the comments off by default with pages and custom post-types Initially I simply used conditionals in the comments display function to avoid displaying the block on these pages, but I ...
user avatar
  • 4,110
16 votes
5 answers
610 views

how to reduce the number of spam comments

I've got the Akismet plugin on my WordPress site but I've been getting more and more spammy comments (that get caught). I'm amazed at the number as the site isn't that popular and doesn't have much ...
user avatar
  • 287
14 votes
5 answers
5k views

Is it possible to pull comments from facebook into your blog?

I have a client who wants to be able to share his latest blog posts on Facebook (no problem there) but then he wants the comments made on his Facebook page to that share shown on his blog as part of ...
user avatar
  • 1,151
11 votes
1 answer
1k views

Find out which moderator approved comment?

Is there any way to find out what moderators have approved a comment, and then display that information on the front-end? e.g. John says: "This is a great article" - Approved by Admin1
user avatar
  • 111
10 votes
1 answer
5k views

Filtering the Admin Comments List to Show Only Comments from the Current User?

In the Comments page (/wp-admin/edit-comments.php), every logged in user can see all the site comments. I'd like the users to see only his/her own comments and the comments that are left to his/...
user avatar
  • 312
10 votes
1 answer
18k views

How to export comments in WordPress?

I want to export my comments to Excel, PDF or Word. The format really doesn't matter, I just want them exported. I tried the Export Comments plugin, the standard one, but couldn't get it to work, I ...
user avatar
  • 435
10 votes
1 answer
2k views

Non-threaded comment replies with link to original comment

I'll explain what I am trying to accomplish. I would like to have regular non-threaded (flat/classic) comments with a reply link to each comment. When someone replies to a comment the reply comment ...
user avatar
  • 1,669
10 votes
3 answers
2k views

How to make comments work for a post loaded per Ajax?

I am currently loading a single post using ajax. While the post loading works ok, I cannot get the comments to load. Here is my code: My javascript to load the post: <script> $(".view_post")....
user avatar
  • 223
9 votes
4 answers
44k views

Why are the comments disabled by default on my custom_post_types?

I am using a custom post type + taxonomies in a podcast solution for a client. The setting (settings >> discussion) for comments is set to "allow comments". When I add / edit posts under the "posts" ...
user avatar
  • 970
9 votes
1 answer
7k views

Approve comment hook?

I'm looking to send out emails to subscribers when a comment has been approved. The two actions in the Codex are: 1. add_action('comment_post', 'callback', $priority, $accepted_args); Where the ...
user avatar
  • 1,361
9 votes
2 answers
6k views

Commenting in user profile page?

I am trying to build custom user profile with the guidance of this tutorial: How to make a WordPress profile page I have successfully implemented it to my theme, everything is working well. Now what ...
user avatar
  • 485
9 votes
1 answer
13k views

How to change "You must be logged in to post a comment."

Some of my users have mentioned that my site is confusing for them. As this is the case, I would like to actually make links to Login/Register for my unregistered visitors to quickly do so if they ...
user avatar
9 votes
1 answer
30k views

How to get comments by post ID?

I have this custom post query to list all the posts within a specific category. For example I have this: $args = array('cat' => 'home','post_type' => 'post')); $post_obj = new WP_Query($args); ...
user avatar
  • 113
9 votes
1 answer
6k views

What are the package and subpackage comment for?

This is included in themes and plugins. /* * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ What are they for? I've read that they are standard and so on, but what is the ...
user avatar
9 votes
1 answer
715 views

comment_post_ID 0 (cannot remove from dashboard)

Ran across something a bit odd that I haven't seen before. A client has a pretty active blog and uses Akismet (paid) to protect against spam. At least once a day, they're reporting a spam comment that ...
user avatar
  • 1,883
8 votes
5 answers
3k views

Disable comments on all posts/pages

Is there a quick way to disable all comments on all posts and pages. I know that you can go into the dashboard under posts, click edit, and Do Not Allow, under comments. Is that the only way?
user avatar
  • 259
8 votes
6 answers
4k views

How do I delete all comments from a specific old blog post?

I'm cleaning up an old, controversial blog entry and I need to remove all the comments from the post. Surprisingly, I can't find a way to do this within the existing WordPress (3.0.4) UI. I can ...
user avatar
  • 2,095
8 votes
3 answers
6k views

How to wrap submit button of comment form with div

Is there a way to wrap the submit button with html element while using wordpress function comment_form function. $comments_args = array( 'id_form' => 'main-contact-form', ...
user avatar
  • 339
8 votes
1 answer
18k views

Change HTML Produced by wp_list_comments()

I am developing a WordPress theme for which I would like each comment's timestamp wrapped in in a <span> element for the sake of styling it with CSS rules. However, the wp_list_comments() ...
user avatar
8 votes
4 answers
7k views

Removing the "Website" Field from Comments and Replies?

In an effort to combat comment spam, I'd like to hide or remove the "Website" field from the "Leave a Reply" section for page and site comments. I have no desire to increase others page rankings by ...
user avatar
  • 277
8 votes
1 answer
3k views

Stop WordPress redirecting comment-page-1 to the post page?

I would like to have a separate page for the comments on a post, such that this page: /2011/02/post-name/ just shows the post and then you click a link to view the comments, taking you to a page like ...
user avatar
  • 823
8 votes
1 answer
399 views

Is it possible to filter comments in a post so a user can only see the comments they have written?

I am relatively new to wordpress, and coding, and I am working on a site where the users will need to leave comments for certain posts, but the person I am building the site for wants the user to only ...
user avatar
8 votes
1 answer
619 views

Why are comments and trackbacks still getting through for custom post types?

We have a site where we don't want comments or trackbacks. We've done the following to disable trackbacks: In Settings > Discussion, unchecked "Allow link notifications from other blogs (pingbacks ...
user avatar
  • 317
8 votes
1 answer
2k views

Importing old Disqus comments into WordPress

Anyone got a working way to import old Disqus comments into WordPress? Presumably by converting the Disqus XML export format to the WordPress XML import format. Note that this plugin is for some ...
user avatar
  • 2,095
7 votes
7 answers
28k views

How to add a class to the comment submit button?

How do I add a class to the comment submit button? The simplified function comment_form(array('id_submit'=>'buttonPro')); obviously only changes the id and class_submit does not seem to exist. I ...
user avatar
  • 3,450
7 votes
2 answers
4k views

WP_Comment_Query pagination, delving into the unknown

I am aiming to pagination WP_Comment_Query(). It appears this is either taboo or there is no viable information about it online, not anything. Why? Is it possible? If so, how?
user avatar
  • 8,589
7 votes
5 answers
16k views

How to change the email notification recipient (user) for new comments?

How do you change the user that gets the notification email announcement for new comments and comment moderation? WordPress sends the notices to the admin user. My client is the editor of the site. I ...
user avatar
7 votes
1 answer
3k views

How to enable comments for pending and draft posts?

I have a custom post type with comments enabled. The comments metabox in the admin only appears when the post is published. I'm wanting to use the comments system as more of a discussion between ...
user avatar
  • 1,163
7 votes
2 answers
4k views

Using Wordpress' WYSIWYG for comments

I've been trying to set up the comments section of a site I am working on to use the default Wordpress WYSIWYG (TinyMCE). But it's harder than expected. I used this tutorial to take me almost all the ...
user avatar
7 votes
2 answers
11k views

Enable Submit Comment Without Page Reload (Using Ajax)?

When user writes a comment and hits the submit button, WordPress reloads the page, before the comment is shown to the user. Is there an Ajax-based solution that allows users to submit questions ...
user avatar
  • 4,461
7 votes
2 answers
9k views

What for is the table "wp_commentmeta" exactly?

I have been reading about the Database Description of Wordpress. I haven't understood the meaning to the use of the table wp_commentmeta. The documentation says: Each comment features information ...
user avatar
7 votes
3 answers
5k views

Comment Walker vs. Comment Callback

I've been messing around with custom comments this week and I'm trying to figure out when I'd want to use a walker and when I'd use a callback... There's some things I can't quite figure out how to ...
user avatar
  • 4,169
7 votes
1 answer
928 views

Experiences with adding Nonces to the comment form

I was wondering about the impact nonces would have on the default comment form a theme has. Because Nonces are a built-in feature of WordPress I thought about giving it a try. Does somebody has ...
user avatar
  • 12.8k
7 votes
4 answers
10k views

Getting Post Comments for post ID using WP_Query() and a Custom Loop?

(Moderator's note: The original title was "Is there a way to get post comments by post ID on a custom loop using WP-Query()?") Hi! I'm running a custom loop using WP_Query, that only displays one ...
user avatar
  • 73
6 votes
2 answers
837 views

Add option to disable comments on a per posts basis?

IN the past I thought there was a chackbox to enable/disable comments when making a new posts? I do not have that option when I make new post's, please help
user avatar
  • 1,620
6 votes
3 answers
4k views

Resetting comment count

Recently, I had to move to another domain and had to recreate all my MySQL tables on the enw server. I noticed that for some posts, the number of comments is doubled. Example - http://inversekarma.in/...
user avatar
  • 327
6 votes
3 answers
7k views

How to remove comment section from page only , not from posts pages?

How to remove comment section from page only , not from posts pages?
user avatar
6 votes
3 answers
3k views

Is there a plugin for posting inline comments, like in MS Word? [closed]

I want to make a cookbook style wordpress website, on which visitors can place comments inline. Like you do in a paper book with a pen: between the lines. Or like how MS Word handles comments. Does ...
user avatar
  • 173
6 votes
3 answers
14k views

When importing - failed to import: Invalid post type feedback

I am attempting to import a site using XML generated by WordPress.com All the posts and media seem to import, but the comments fail with errors Failed to import “Sarah Toon - 2015-10-10 08:29:30”: ...
user avatar
  • 239
6 votes
1 answer
6k views

How to limit users to one comment per post

I am using WordPress as a petition site and hacking the comments system to work as the petition signup. I would like to find out how I can limit a user to post only one comment per post. So far I can ...
user avatar
6 votes
1 answer
10k views

Redirect user to a custom url after submitting the comment

After someone submits a comment this line of codes redirects him to the post (i believe). Can I modify the code in order to redirect him to a custom URL? do_action('comment_form', $post->ID) Ty for ...
user avatar
6 votes
2 answers
12k views

Paginate result set from $wpdb->get_results()

Is there an easy way to paginate the result set coming from $wpdb->get_results()? I want to get a paginated list of a user's comments on the author_archive page - some of the users of the community ...
user avatar
  • 9,492
6 votes
2 answers
1k views

Style reply form different than comment form

Is there a way to display (css and html) in a different way the "reply" form and the main "comment" form?
user avatar
  • 575
6 votes
3 answers
10k views

Change Comment Author Display Name

I am trying to change the comment author name (or more specifically, the review author in WooCommerce) to be First name Last Initial (e.g., "John D." for "John Doe"). I got most of the way there with ...
user avatar
6 votes
1 answer
4k views

Aggregate comments, with pagination

I want to build a page that would display all comments, regardless of which post they're attached to. I also want that page to be paginated, since it'll potentially have 10,000+ comments. I'm not ...
user avatar
  • 1,473
6 votes
1 answer
892 views

Would switching to InnoDB from MyISAM improve performance of comments table?

A site I've built gets lots of comments in a short space of time - so perhaps 100 comments might be left in 5 or 10 minutes. This seems to cause a pretty heavy load on the database, especially when ...
user avatar
  • 9,492

1
2 3 4 5
38