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.

learn more… | top users | synonyms (1)

1
vote
1answer
25 views

Add Div to Comment Form

I have some code that displays my comment form and my custom validation, what I'd like to do is add a div right underneath the title, but I'm not sure how to do that because that code is generated... ...
0
votes
1answer
13 views

Adding comments section to website integrated WordPress instance

We've integrated a WP instance into our website, and I was wondering how to render the comments template into the page. I've tried simply adding: comments_template( '', true ); But it doesn't ...
0
votes
2answers
521 views

Check for Facebook comments in a post?

How can I check if a post has Facebook comments on it and create a conditional statement? I'd like to show a small comments icon if any comments have been made. Even better, anyone know how to get ...
-1
votes
0answers
11 views

Show only comments on posts from authors in WordPress [on hold]

By default Wordpress shows all accounts all the reviews that the site has received. Did that when I was logged in as Author only show comments on the posts Author. see: Comments with green ...
0
votes
1answer
42 views

How do I call comments_template(); from a plugin file?

I am trying to call comments_template(); from a plugin file. Specifically, it's the player.php file from the plugin All Video Gallery. Below is the file itself. <?php ...
1
vote
3answers
348 views

Comment as post - understanding wp_list_comments

I'm creating a site where a central question will be posed on the front page with excerpted first-tier comments linking to a page with the full first-tier comment, presented almost as a post, with ...
1
vote
1answer
27 views

To whom do emails get sent via the Wordpress comments form?

I am working on a Wordpress 3.9.1 site, specifically the comments form. I have a copy of the site on my server and I want to test the form in the following three ways: Adding a new comment ...
1
vote
0answers
39 views

wp-comments-post.php file returns a blank page

When i post a reply to my blog, it's return a blank page to me. It seems that happens because of this code in wp-comments-post.php if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { header('Allow: ...
0
votes
0answers
19 views

How can I check a new comment reply in realtime and get the reply text for a notification system in wordpress?

I would like to, when you get a reply for your comment, you get little box, in right side, something like this with the reply text. The notificator must be work in real time, and must be, get the user ...
0
votes
1answer
363 views

Display category-specific comments in sidebar

I'm trying to display comments in the sidebar from only the current category. So far I've got this: <?php // Posts per page setting $ppp = 8; //get_option('posts_per_page'); // either use ...
0
votes
1answer
10 views

comment-reply.js always focuses on comment textarea

When replying to an already posted comment, comment-reply.js (or the 'min' version) is used to move the comment form up to below the comment being replied to. It also gives the focus to the actual ...
0
votes
0answers
25 views

Comments pagination and WP_QUERY

I have a list of posts using wp_query On each post theres a list of comments What Im trying to do is to limit the number of comments to 2 and display a link for the next page of comments which I'm ...
0
votes
1answer
262 views

ol children instead of ul children

I've created a new walker class to display a custom layout when using the wp_list_comments(); function and this is perfect, the only thing is that all replies to one comment are listed in a <ul> ...
0
votes
1answer
40 views

No comments on static front page

I have had this problem before. I want my homepage to be very simple, and I don't want it to be a discussion forum or a place where you can leave your comments. I wrote yesterday and got some good ...
0
votes
1answer
246 views

How to display comments on different page

I am creating a reviews site and I want to display the customer reviews (comments) on a separate page from the single-restaurant.php. I'll just have a link that says (Read reviews/ add yours). I ...
0
votes
1answer
56 views

I need to delete all posts from my homepage & create a static front page [closed]

I want my homepage to be clean and without any posts or comments from my visitors. I have tried to do almost everything, but it doesn't work. I don't want people to discus anything, all they have to ...
0
votes
2answers
14 views

Comment text area in single blog post and show comments if approved

I'm modifying some existing code and trying to add the ability for user to leave comments on single post and then echo those comments based on approval. I need to add right below <?php ...
0
votes
4answers
2k views

How to add editor-style.css styling to wp_editor on front end for comments

How can I apply my own css (to match editor-style.css) to wp_editor being used on the front end for comments? Currently I'm using code from here to enable the visual editor for comments. My actual ...
0
votes
1answer
223 views

How to check if commenter is the_author?

What's the best way of checking if my commenter is also the author of the post that he post comment on? I know there's a css way (.byauthor), but how about PHP? How to compare post author with ...
0
votes
1answer
305 views

Get Comment Author ID on the fly while posting

I am adding custom data to custom table while author posting a comment. Please find my code in my own answer here http://wordpress.stackexchange.com/a/85109/9821 Now I want to add one more column of ...
4
votes
4answers
1k 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?
0
votes
1answer
984 views

Custom post type: can't enable comments by deafult

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ...
1
vote
2answers
167 views

Top Commenters: exclude admin

I'm using the following code in my function.php to display the top commenters in my theme: function top_comment_authors($amount = 5){ global $wpdb; $results = $wpdb->get_results(' SELECT ...
0
votes
0answers
8 views

Disable comment moderation in multisite

I'm looking for a way to disable comment moderation in wordpress completely over the whole of multisite. This is important because my site requires users to log in to use it, and every new site has to ...
0
votes
0answers
17 views

Disqus comments only show up on newest post

I've setup Disqus comments on our company blog (link) By creating a comments.php file with: <div id="disqus_thread" style="margin-top:50px;position:relative;"></div> <script ...
0
votes
2answers
347 views

Actual comments not showing, but form is?

I have edited the comments form to remove a few fields and now the approved comments don't show up, just the form itself. What am I missing from this? <?php $comment_args = array( 'fields' ...
0
votes
0answers
12 views

I can see comments but I can “reply” please help

Here is my Custom Post Type 'supports' => array('premise-member-access', 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments'), Comments enabled on settings->discussion ...
0
votes
2answers
256 views

How to use the 'comments_number' filter?

I'm not sure how to use this filter. Could someone show me an example? I'm trying to change ('0', '1', '%') to ('0 Comments', '1 Comment', '% Comments'). I'm using this function to get the comments ...
-2
votes
1answer
21 views

How to stop a specific person to comment on my blog? [closed]

I need to permanently prevent a specific person to comment on my blog on wordpress.com How can I do this, please ? My theme is iTheme2
2
votes
1answer
305 views

How to convert WordPress comments to bbPress replies

I have a old blog that I would like to upgrade to a blog/website with bbPress forums and would like to convert the post to topics and the comments to replies. I already created my topics and now I ...
1
vote
1answer
19 views

save_post action hook for comments

Is there a action similar to save_post for comments? Already tried comment_post which does not fire when clicking the update button on a comment in WordPress.
0
votes
0answers
51 views

Comments and Bootstrap 3's media-list

I'm developing my first custom theme for WordPress based on Bootstrap 3 framework. I'm newbie and I can't understand few things, so I'd like to ask you for some help, especially with comments.php, ...
0
votes
2answers
293 views

Show count of all comments by meta_value from a users posts

I'm trying to display the total number of comments for a users posts limited to a comment meta. I've tried using both get_comments() and WP_Comment_Query() but I get the same result of "1" for the ...
1
vote
1answer
99 views

Turning off trackbacks & comments

We have a few different websites running various versions of Wordpress that have comments and trackbacks turned off, yet I still receive emails saying there's some waiting for me! I've turned them ...
0
votes
0answers
20 views

How to show comments for a specific category of posts with a shortcode

Referring to this post category specific comments here Display category-specific comments in sidebar I need to ask 2 further related questions. 1/ Is this code still valid for WP3.9? 2/ How can I ...
6
votes
3answers
4k 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 ...
2
votes
1answer
3k views

comments reply script not working

Sadly my "reply" link for threaded comments is not working. The current situation: First i load the comments reply script (check if scripts content load: works) into the <head> using two ...
0
votes
0answers
8 views

Group comments in the admin section

Is there any way to re-arrange the comments in the admin panel of WP? I'd list to nest them in the same way as it is happening in the front-end, thus having the opportunity to see the comment I have ...
2
votes
5answers
470 views

Remove Comments Metabox but still allow comments

I already know how to remove a metabox from my custom post type edit page. However I want to remove the comments metabox but still allow commenting for the post. Because I notice when I do remove ...
1
vote
1answer
20 views

How to get comment id in callback function?

I am trying to get the comment ID in the custom callback function that I can use in wp-list_comments. Any help on how to do this? Thanks in advance I am using wp_list_comments as: ...
0
votes
1answer
16 views

oEmbed does not work for comments

I've got two websites, a staging and a production one. They have 99% the same setup and are hosted on the same server. They are multi-site WP installs. The issue that I've been trying to solve all ...
1
vote
2answers
32 views

Hide default “Recent Comments” Widget if there are no comments yet

Is there a way to hide the widget completely if there are no comments yet? I was thinking about maybe adding a php function to my functions.php file - is that a possible way? If so, can someone ...
0
votes
0answers
25 views

Comments_template doesn't work

If I use comments_template(); it does not work at all. But if I change it to global $withcomments; $withcomments = 1; comments_template( 'comments.php', true ); it displays the comments ...
0
votes
1answer
19 views

How to Define Custom Number of Items in Comment Feed

Seeking a hook or code to override the Reading-Settings value for Syndication feeds show XXX items specifically for the comment feeds. Ideally I'd want to roll into a plugin I can network activate ...
1
vote
1answer
76 views

Disabling Comment Notifications for Post Author

I am trying to disable comment notifications for post authors (or anyone else besides the site's admin) for a client's site. I've attempted to create a plugin that uses the pluggable function ...
2
votes
1answer
215 views

Allow guests comments on single post

I would allow guests comments who are not registered yet to comment only one single post. Other posts have to be commentable just for registered users.
1
vote
1answer
12 views

Which filter/hook to use for styling comments?

I would like to create a plugin that modify the styling of the comments section. Given that some users may be using other plugin to replace the default commenting system (facebook, disqus, ...), what ...
0
votes
2answers
22 views

Is there a better way to check for a new comment?

I have some code that runs on the client that checks every 30 seconds or so for new comments, and if a new comment is found the user is alerted. The check count the comments on a page, and returns ...
0
votes
0answers
44 views

Merge multiple posts comments

Edit: I now have a combined object by adapting this code to work with my comment objects, I can also pass this new object to wp_list_comments to display a combined list. I dont know how to override ...
1
vote
1answer
163 views

using wp_query to return posts w/ comment count > 0

I've looked at numerous examples of wp_query and can't figure this out. If the thing I was comparing were a meta value then I could to a meta query, but apparently you can't do a compare with a ...