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
84 views

“comments.php” not available after edit in WP administration

In the theme "Point", the page "comments.php" is not translated properly. I wanted to translate the labels manually (to french) in the WP administration editor but when I update the file, the comments ...
2
votes
1answer
41 views

Why are default comments deprecated?

I am developing a theme and, after calling comments_template(), noticed that "Theme without comments.php is deprecated since version 3.0". I created a comments.php in the root of my theme and copied ...
0
votes
0answers
24 views

How can I change the markup of the comment_form() function?

I am currently creating a website on localhost. I am looking to change the cancel_comment_reply_link from being next to the "Reply to " section, instead being right next to the "Submit" button. I know ...
4
votes
1answer
210 views

Show content only if member left a comment

Functions Php : add_shortcode( 'membervip', 'memberviparea' ); function memberviparea( $atts, $content = null ) { if( is_user_logged_in() ) return '<p>' . $content . '</p>'; ...
0
votes
1answer
18 views

How to open up comments to all visitors

The "Leave a Reply" section at the bottom of my pages is asking for a login before visitors can comment. Is there any way I can turn this off so anybody can leave a comment?
1
vote
1answer
20 views

Editing WordPress comments : generating comment from selection

On my website, I would like users to comment using a list, which will then generate a comment for the user. For example, the comments section will have a multi-select box asking " which part of the ...
0
votes
1answer
33 views

A Space being added to url generated by custom plugin

<?php /* Plugin Name: Convert Comment tag to link */ add_filter( 'comment_text', 'mh_commenttaglink' , 5000 ); function mh_commenttaglink( $text ) { // RegEx to find #tag, #hyphen-tag with ...
-1
votes
1answer
138 views

prevent duplicate comments using wp_insert_comment

i am trying to import facebook comments to wordpress what iam doing is get the graph of the facebook post Comments, json decode it then i import the comment via this code so my code so far is ...
0
votes
2answers
56 views

How to add text to the start of all comments?

For example somebody replies- Hi! This is a Comment! but is published as Text- Hi! This is a Comment! Any ideas folks? I'm totally stumped. I want to add the extra text so it appears within the ...
6
votes
1answer
913 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 ...
2
votes
2answers
1k views

Custom Post Type loops and Disqus

I've created a CPT for a site I'm working on at the moment called "campaigns". I've created a page which displays some content as well a custom loop which displays the most recent Campaign. ...
0
votes
1answer
25 views

Some comment box wordpress in 1 post [closed]

Can I add more sections to comment on the same post? For example, I have an Entry and it has 4 tabs, In every tab you need a comments section, Is this possible? Thanks
1
vote
1answer
189 views

Can wp_list_comments output into variable?

Is there any way how to output wp_list_comments() into a variable? Something like $output = wp_list_comments(array('reverse_top_level' => false ), $comments); I am writing a plugin and it would ...
1
vote
1answer
55 views

Disqus comments and pingback script - how to change the order?

I am using the "modular demo solution without wp_list_comments()" for showing trackbacks and pingbacks next to Disqus comments. And I would like to know how to change the order of output? With these ...
0
votes
1answer
14 views

Front End User(bloger) turn on and off his comments

I have a wordpress site with bunch of users, each of them having their own page with comments. I would like to implement a checkbox for users on the front end, to turn(toggle) on and off the comments. ...
0
votes
1answer
49 views

get_comment_meta not behaving as expected

I'm sure this must be a silly error by me but I haven't been able to solve it... I added an extra 'rating' field to my comments form so that users can rate posts. Everything works fine and by using ...
1
vote
1answer
52 views

Add action on delete comments?

I add some input fields to the comment form, and than this new data is stored on commentmeta table. When a comment is deleted, the data on commentmeta is still there. How can I delete these data ...
0
votes
0answers
30 views

get_comments function returns diffrent values on different accounts, why?

If I am on my admin user, the function get_comments() returns the array of comments in the template, but for the subscriber, the array is just empty. I tried to add permission to the user but it ...
2
votes
1answer
199 views

Allow contributors to moderate comments comments on posts they write

I run a multi-author wordpress site where we have a large number of contributors that can write articles, which are published after they are reviewed by an editor. (This is all standard wordpress ...
1
vote
0answers
16 views

Prioritizing the wordpress comments

I want to change the order of the post comments i.e the main comment should be in desc order (recent comment should display first) but all the reply to the main comment should be in inc order(latest ...
0
votes
1answer
14 views

How do comments work?

I click the comments button in my admin dashboard and I only see 1 comment. I disabled comments on my website and it's not even from my website, it's from another website, looks like they linked to a ...
0
votes
0answers
32 views

How to avoid comment form outputting user id

I have a comment form on a website and here is the code for outputting comments: <ol class="comment-list"> <?php $arg = array( 'number' => 10, ...
1
vote
0answers
36 views

delete duplicate comments

I found a solution for this a long time ago. Here is the code: <?php require_once('wp-config.php'); global $wpdb, $comment_content, $comments,$comment_ID; # First select all comments $query = ...
4
votes
2answers
128 views

Check If comment author is registered

It should be simple, but I tried some codes, none does the trick. Searched on Google, nothing there either. Simply check if the comment author is a registered user (so I can add some code for it), ...
7
votes
3answers
2k 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 ...
2
votes
2answers
164 views

feed links for custom post type pages

I have a WP based site with a lot of pages based on custom post type. But I see a lot of 404-links in the Google Webmasters finished with /feed. It looks like default WP function, when WP adds /feed ...
0
votes
1answer
39 views

Getting error while trying to use custom comment function

I'm trying to write a function that will allow me more control over the display of comments on a post page. However I'm confused about how to set it up so WordPress can use it. right now I get the ...
1
vote
0answers
31 views

Placed on + only date (not time)

When I create a comment or, ... you can set Placed on. For example: 20 june, 2014 on 14:23 . But I don't want the time (14:23). Only 20 june, 2014. Is this possible, and if so, how can I do this? ...
0
votes
2answers
17 views

Remove Commenting on Certain Pages

I have created some pages in wordpress like "Contact, Photo-Gallery, Services". Problem is - on every of those pages at the bottome there is a form for commenting a page. I do want to have this ...
1
vote
1answer
605 views

how to properly use comments-template.php

I want to modify comments form for both logged in users, and for those who are not. I modified the form for those who are not logged in by changing my comments.php but I'm not quite sure how to ...
1
vote
1answer
101 views

Log in link not showing, Comment Issue

We want user to register and then comment. So we, Checked the option of "Anyone can register" as true. Checked the option of "Users must be registered and logged in to comment" as true. Now, the ...
0
votes
1answer
87 views

Change username to nickname in comment section

Is it possible to change the username to nickname in the comments section? Here's the code I currently use to show the user's username in comment section: <?php /* translators: 1: comment ...
0
votes
1answer
467 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 add_action('comment_post', ...
0
votes
1answer
382 views

Engadget Like most commented plugins

i am looking for a most commented plugin like that of in engadget website and propakistani. I would be very thankful if someone could help me out with it. Thanks
0
votes
0answers
57 views

Admin comment always on top of comment list / nested replies - possible?

I'd really just like a push in the right direction for this.. using a callback for a custom comment display so I can have 4 different forms of code and styles for: normal 'parent' comment normal ...
0
votes
1answer
115 views

How to add custom comment fields but *only on the comment reply form*?

I've been searching high and low for this but can't find anything that explains how to add custom fields to only the reply form. I've seen and got working custom fields on the comment form, but when a ...
0
votes
1answer
30 views

Current user comments + post title

I want to show current user comments with the title of the posts in his custom front-end page that I made. currently I use this code but this only shows the comment itself. add_shortcode ( ...
0
votes
1answer
38 views

Can't reply to comments [closed]

I can't approve or reply to comments via the dashboard. Approving just returns the comments. And quick reply doesn't work and it says page not found and shows a whole bunch of code in red, nothing too ...
11
votes
6answers
8k 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, ...
0
votes
0answers
73 views

Get url/link to latest comments in a post

I have a post list in WordPress where people can see the most recently commented posts. They will appear above the list. That's fine, but now, I have 300 comments on the same posts and I don't want ...
0
votes
0answers
26 views

Getting comment-reply to load

I am trying to get the comment-reply.js script to work, and at the moment I am having problems including it in my pages. Currently, I am using the following in my header.php file: <?php if( ...
1
vote
1answer
48 views

If there is a comment_author_link put url around the avatar image

In the functions.php file for my theme the .commentslist shows a gravatar and if the user fills in a url in the comment form, you get a comment_author_link() Which prints a link with the name. I ...
0
votes
1answer
32 views

Problem displaying replies as part of author's latest comments on author page

I've based a lot of my method on this thread here I can currently display 5 latest comments on an author template page. I want to display the latest 3 replies from any user for each 'main' comment ...
0
votes
1answer
62 views

How to wrap comment_form $fields in one div?

Is there a decent standard WP way of wrapping the 3 standard fields (name, email, website) in a div? I'm using bootstrap and would like them to be in their own row. Example: <?php ...
-1
votes
3answers
1k views

Twitter/Facebook login for comments [closed]

What plug-ins there are available to allow people to leave comments using their Facebook and Twitter logins? Any special considerations or recommendations? I am currently allowing comments with the ...
1
vote
1answer
78 views

Add classname comment template from functions.php

I want to add an extra classname to my comment template (the div wrapper before the post itself) which is stated in functions.php. The classname in functions.php is an extra field in my users profile ...
0
votes
0answers
57 views

My Admin Not Receiving Comment Notifications

I have an issue where my admin is not receiving notifications when she receives a new blog comment. All setting is discussion are set up for her to receive emails and she is the only user on the site. ...
0
votes
1answer
35 views

unsetting required fields in the comment reply form

Is there a way to make differences between the normal comment form and the reply-to-form? For example, I added a set of required radiobuttons to the form which make rating by commenting happen. Now, ...
3
votes
1answer
155 views

How can I edit the email sent when a new comment is received?

I have a multi author site and when a user comments on a post, that author gets an email saying there is a new comment. This email is formated in the standard WordPress way New comment on your post ...
0
votes
0answers
19 views

Comments disappeared but showing in database

This morning I published an article under which several comments were placed. I could read them and everything worked fine. Then all of the sudden, the number of comments were still showing on the ...