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)

0
votes
1answer
60 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
21 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
3k 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
254 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 ...
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?
1
vote
2answers
170 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
16 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
38 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
0answers
15 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 ...
1
vote
1answer
47 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
409 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, ...
1
vote
1answer
102 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
33 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
5k 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
10 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
518 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
43 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
23 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
49 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
84 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
26 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
162 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
235 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
13 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
25 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
67 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
192 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 ...
0
votes
1answer
93 views

Use specific language for comment section

On some pages I have the possibility to write a comment (name, email, website, comment). The labels are now in my default language. Now I want to use the English labels for the whole comment section. ...
1
vote
2answers
345 views

Loading post comments after clicking a button

Is it possible to load site comments on-demand instead of having them always display at the bottom of the post? Like by clicking on Load Comments.... You can check labnol.org. They are using Disqus ...
12
votes
5answers
3k 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 ...
0
votes
0answers
30 views

How to change the comment field validation rules

So I've created a comment form and have added my own "Terms and Conditions" field and was hoping you could show me the best way to change the validation rules when submitting a comment as I want to ...
0
votes
0answers
16 views

URLs to user page is broken

My domain is http://mongage.com I don't know what happened to my site. the user URL linking to author/user page is broken. I switched to a new theme, but no success. I am using thentythirteen and the ...
0
votes
1answer
60 views

get_comments not working consistantly with post_id

I am trying to get comments from another post. I am getting the post_id and doing a check to see if it has comments I can get the comments for the current post every time but for the other post I am ...
0
votes
1answer
83 views

Custom Nested Wordpress Comments with avatar

I am developing a theme and has no idea how wordpress handles the comment outputs. I have wp_list_comments in my comments.php, but I'm not sure how to customize the output to get the desired output ...
0
votes
0answers
31 views

Adding an input field to the comment form, and not letting it submit if any info is in it

I am working on a WordPress plugin that adds a hidden input field into the comment form. I have the code in place that adds the input field in, using this code. function hiddeninput_more_comments( ...
4
votes
1answer
882 views

How do I set up real anonymous posting in bbpress forums? [closed]

I have bbpress-post-topics plugin installed so that my comments forms are replaced by a bbpress forum topic, it's working but I would like to enable anonymous posting. Currently, as you can see ...
1
vote
1answer
80 views

User can post only one comment per day on one page

This code count comments per day on all pages. I want that will count only on one page for 1 day. So my case: on a page with an ID of 1, a user can comment with out any limit, but on a page with an ...
0
votes
1answer
21 views

Batch approve comments

Akismet went crazy and sent several hundred comments to spam. Right now, I have to manually mark each comment as "Not Spam" and then manually move all of them from Pending to Approved. Any way to do ...
4
votes
2answers
856 views

How can I limit the number of comments per registered user per day in wordpress?

I found this code here on WPSE: global $current_user, $post; $args = array( 'user_id' => $current_user->ID, 'post_id' => $post->ID ); $usercomment = get_comments( $args ); if ( 1 <= ...
4
votes
1answer
409 views

Disable saving comment details (name, e-mail) in cookie?

The European Union has introduced a directive requiring that websites obtain permission for setting all 'non-essential' cookies. In the UK (where my site is based), the appropriate detail is explained ...
0
votes
0answers
55 views

Comments Template shows, but not the comments

I've customized a twentytwelve theme, changed the index and content, nothing else. Now, I've lost the comments. Google says to call this first: <?php comments_template(); ?> But, everywhere ...
1
vote
2answers
20 views

How should I get the original comment while processing the reply

I'm working on a comments section for my template. And I need to do something like this: Comment: -This was my original comment And this is my reply to the original comment. So I wanna cite the ...
0
votes
1answer
33 views

3rd Party Login in wordpress

I have two sites. One on wordpress and one non wordpress site. Now, I have used the header and footer from my non-wordpress site. What i want is that if user logs in on my non-wordpress site then he ...
1
vote
1answer
79 views

Convert comments to Custom Post Type

Currently, I use WordPress as a Q&A website where users can register, ask questions and give answers as well. I use the AskIt theme from ElegantThemes which uses the default WordPress Post Types ...
0
votes
3answers
98 views

How to change commenter links to /user/user_id?

I would like to change the commenter links as shown in this screenshot: In my test plugin at GitHub I have first tried the following code: define('PROFILE', '<a href="/user/%s" rel="external ...
1
vote
1answer
798 views

Last comment page first with full number of comments?

I use paged and threaded comments with: 10 comments per page the last comment page first the newest comments first If there are 21 comments total, the first page only contain 1 comment - the ...
0
votes
1answer
78 views

Comments from mobile apps & Disqus

I'm currently using Disqus in my WordPress Installation, and I am pretty happy with it. However, I'd like to extend my native mobile app (Windows Phone) to allow the users to post comments directly ...
1
vote
1answer
504 views

Customize comment list markup

While creating a new theme, we'll have to customize the comment flow. For doing so there are two functions: wp_list_comments() and get_comments(). I am not very sure how to style the inner elements ...
0
votes
1answer
365 views

How to display comments list by order when clicking on newest or oldest link?

0 down vote favorite I have a wordpress single post where I have comment system - Live Site And I have two links one is: 1. newest 2. oldest The thing I want is when I will click on newest it will ...