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
417 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 ...
2
votes
1answer
26 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
2answers
429 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
2answers
356 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 ...
0
votes
1answer
25 views

Exclude the word comment from being referenced

Lately i m trying improve my SEO, and i found in Google Webmaster Tools that the mains keywords are 'Comment' & 'Read more' it s a bit frustrating. How can I say to the search egine dont ...
0
votes
0answers
10 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 ...
1
vote
3answers
446 views

How do we remove the H3 tag for the reply-title I.D

We're doing some SEO tweaking to a site, and our SEO guru informs us that we need to remove the <h3> tags from the #reply-title element, output from line 1554 of comments-template.php. It's the ...
0
votes
1answer
15 views

Why is a old comment reply comment appearing at end of comment list as well

EDIT: Updated function to use get_comments offset param. Issue is still occurring. I am displaying 5 comments at the end of an article and using ajax to request the rest of the comments. On this ...
4
votes
1answer
193 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
16 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?
0
votes
2answers
405 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' ...
1
vote
1answer
13 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 ...
1
vote
3answers
389 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 ...
0
votes
1answer
21 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
98 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
27 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 ...
5
votes
1answer
755 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
23 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
158 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
37 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
416 views

Disable comments and pingbacks on old custom post types

This SQL code will disable pingbacks on old posts and pages: UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post'; UPDATE wp_posts SET ping_status='closed' ...
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
19 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
26 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
19 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
159 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
12 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
13 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
25 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, ...
0
votes
1answer
457 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
2answers
966 views

How can I make Disqus comments not show up on pages?

I use Disqus to manage my comments. I'd like it to appear only on posts, and not on pages. How can I do that? If there's a way to selectively show it on some pages that'd be great, but in general ...
1
vote
0answers
22 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
99 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), ...
0
votes
1answer
2k views

Custom post type: can't enable comments by default

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: ...
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
105 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
23 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
19 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
16 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
557 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
97 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
38 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
402 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
381 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
44 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
53 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
27 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
27 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
7k 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, ...