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
0answers
66 views

Display posts with comments closed, with pagination?

i'm using a custom query, which needs to display all posts with closed comments. I have this <?php $the_query = new WP_Query('showposts=-1'); ?> <?php while ($the_query -> have_posts()) ...
0
votes
1answer
64 views

Comment Function

How would I make this Function display only the latest 5 comments? function showLatestComments() { global $wpdb; $sql = " SELECT DISTINCT comment_post_ID, comment_author, comment_date_gmt, ...
1
vote
1answer
108 views

What filter/action hook can I use to add a few links to the admin comments page?

I would like to add a link to every comment when it's displayed in the recent comments admin page (edit-comments.php). For the sake of this question, the link should just be this: <a ...
1
vote
1answer
284 views

Ajax comments not working

I followed a tutorial to 'ajaxify' wordpress comments where it does not reload the page: jQuery('document').ready(function ($) { $('#commentform').each(function () { var commentform = ...
0
votes
1answer
51 views

How do I get a array, with the right order of the nested comments?

array (size=10) 'comment 0' => array (size=2) 'comment_id' => string '22' (length=2) 'parent_of' => string '0' (length=1) 'comment 1' => array (size=2) 'comment_id' => ...
-1
votes
1answer
78 views

wp_list_comments adds unnecessary elements

wp_list_comments adds UL / OL or DIV which do not serve for my thema. how do I prevent this?? screeshots: http://d.pr/i/1bpn my code http://pastebin.com/bQxUyZTs tnx!
0
votes
1answer
166 views

same comment list for two posts

I've an unique problem, I'm using WPML to translate my website. WPML takes post and duplicates it, so that translation becomes another post. Thus keeping Gallery/Comments/Ratings separate. I'm on ...
0
votes
1answer
94 views

Incorrect redirect after commenting

I noticed not too long ago that after posting a comment the user is redirected to a page with this url ...
3
votes
2answers
1k 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 ...
-1
votes
1answer
40 views

Reply form used in wordpress.com

The reply form that comes originally with wordpress is, well, so big and annoying. While the one that appears on wordpress.com blogs is very elegant and feature-ful. Does the one used in ...
5
votes
1answer
787 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 ...
0
votes
1answer
83 views

Pull comments from one page/post into another page/post?

I am creating a facebook app via wordpress but some how need to pull the comments off my homepage and insert them onto another page, essentially what I am trying to do is duplicate the homepage with a ...
0
votes
1answer
104 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. ...
3
votes
1answer
1k views

How to add filter in “Comments” at the admin panel?

I found so many information and most of the tutorials only talk about adding filter in post/custom post only. I want to do something similar to this tutorial in 'Comments' area in admin panel. Add ...
1
vote
1answer
870 views

where to modify get_comment_author_link()?

Whenever a user presses on a comments author it redirects the user to the site which was enetered by user. I just want to add the target="_blank" element. where I can modify this? In file i see only ...
1
vote
3answers
182 views

How do I turn comments off for pages, but not posts?

I want my pages to not have comments enabled by default, only my posts. Is this possible?
2
votes
2answers
440 views

How to get the result of comments_number() as a string instead of printing it out?

comments_number() is quite useful: It takes the result of get_comments_number() and prepares the output with some localization magic. Unfortunately, it prints the result out when it is done, it ...
0
votes
4answers
131 views

Custom setup of wordpress comments that are displayed

I have setup in admin to have 5 comments per post display, which is what I want, and newest at the top. But the problem is when a 6th comment is made it is the only one displayed and you can read ...
2
votes
2answers
3k views

Add placeholder attribute to comment form fields

I have been trying to add to the default WordPress comment form. I need to add placeholder="" to each field. I can't figure out the filter. I don't get any errors but I don't see the placeholder ...
0
votes
2answers
93 views

Wordpress error when sending comment

I'm using the default comments template. When I send a comment I get the following error message: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ...
0
votes
1answer
396 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 ...
0
votes
1answer
606 views

Can I create a new comment type?

I want to add different custom fields to comments that belongs to different user group, and display different types of comments in different ways. But WP has some default comment types that shows the ...
2
votes
1answer
175 views

Edit Comment_Field while using T5 Comment Textarea On Top-Plugin

I’m using the T5 Comment Textarea On Top-Plugin for the comment_field. I’m a newbie to wordpress. So I don’t know, how can i edit the Style of the comment_field or edit the Label? Usually I would put ...
2
votes
3answers
247 views

How to get last comments but not from admin (or other specific user role/capability)?

I'm using get_comments to show lastest comments i.e.: <?php global $comments, $comment; $comments = get_comments( array( 'number' => '5', 'status' => 'approve', 'post_status' => ...
1
vote
0answers
72 views

Comments from vbulletin topic

I have a WordPress site and a forum that runs vBulletin. Each article I post on the website is automatically posted as a thread on a specific forum category (using the website RSS feed). Now, I have ...
1
vote
2answers
92 views

Get declared variable in single.php to work in comments.php without re-declaring it [closed]

I have declared a variable in my single.php $title = 'myvar'; Can I get it in my comments.php without re-declaring it again? I use this code to get the comments.php templage: <? ...
1
vote
2answers
112 views

Make wordpress comments work with include templatepath

How can I make the wordpress comments work with: include(TEMPLATEPATH."/comments.php"); instead of: comments_template( '', true ); Ay ideas? Ty
4
votes
2answers
907 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 <= ...
0
votes
1answer
38 views

Modify links in user comments

When a link is posted in a comment, the format is : rel="nofollow" Using a function, how can I change that to : rel="external nofollow _blank" So the links open in a new window?
2
votes
1answer
241 views

wp_insert_comment error. puzzled by date value

I am trying to programmatically insert comments in a bulk operation as part of migration routine. Comments are in a SQL server table. I receive the date info from the SQL server table field and ...
0
votes
1answer
117 views

Problem display only posts with comments

I'm trying to make a page that will show only the posts that have comments. I have this in my page template: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts( ...
1
vote
1answer
772 views

What is causing wp-comments-post.php to redirect to the browser's IP address?

I've got a copy of WordPress running that has recently been moved off shared hosting and onto a VPS that I control. While a testing copy of the same site runs correctly on another vhost on the same ...
1
vote
1answer
85 views

Problem with Comment link in Blog [closed]

I have all the settings setup to allow comments on my Blog postings. However, when you click on the link to post a comment nothing happens. Attached is my comments.php file Also the site is ...
2
votes
0answers
68 views

How to hide “Trackback” on paginated comments

My Setup: On my Single's page I have used this comments_template('', true); to separate Trackback's & regular comments. The Heading "Trackbacks for this post" shows up only if a post has ...
1
vote
2answers
49 views

Comments deactivated

I can't write comments to new articles (no add comment link available). I use Wordpress 3.4. I checked the discussion properties and they are set to allow guests to comment articles none of the ...
-3
votes
1answer
199 views

some posts have comments closed and some open why?

Some posts in my wordpress isntallation display comments closed, while some are open. Did this happen because while writing those posts comments was closed and now as it is open value in db remained ...
1
vote
0answers
17 views

Enable comments for author.php [duplicate]

Possible Duplicate: Commenting in user profile page? Question I have an author.php page and I need to enable comments so when other users come to that authors page they could leave a short ...
1
vote
0answers
122 views

Latest comments from each category?

On the "home"-page I'm trying to display the most recently commented-on post for each category. I managed to display the most recently published post for each category, but if an older post from each ...
3
votes
1answer
1k 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 ...
1
vote
0answers
62 views

wp.getComments is returning nill, when i called from my iphone app

i have called wp.getComments from my iphone app, but its returning nil,, following r my parameters can anybody tell me where i gone wrong NSDictionary *DicCommentStructure = [NSDictionary ...
1
vote
2answers
77 views

Posts vs. Pages

Okay so I've spent the last few weeks (on my spare time outside of work) creating a site for a client with a custom built theme. This is my first use of wordpress and the site can be seen here at ...
4
votes
2answers
611 views

Show comments from multiple post IDs in comment template

This may sound like an unusual request but I am try to display comments from several related posts in a single comment template. For example I have several posts on the same topic (IDs 253, 724, 798) ...
0
votes
1answer
478 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 ...
1
vote
1answer
171 views

Display comments of users on single page

I don't know if i can explain this.. I want to create a Page where the comments of specific user is listed. like this format... User Name Post Tilte - comment - comment ...
1
vote
1answer
1k views

Set post comments open function

I've been searching high and low for a php function to set a comments of a given postID open only found function to check what the comment status is <?php comments_open( $post_id ); ?> I ...
2
votes
1answer
369 views

Display number of comment replies

I want to show the 3 most recent comments and have a small div underneath that shows how many replies each comment has (count how many comments where comment_parent => comment_ID). I do this by ...
1
vote
1answer
711 views

Upload images with comment

EDIT: I finally got the right answer; see my own answer beneath this post for everyone that's interested. After searching for a couple of days and trying over and over again I really got stuck. ...
0
votes
1answer
507 views

Replace do_action() with a normal submit form in comments.php

In my comments.php I have this code: <input name="submit" type="submit" id="submit" tabindex="5" value="Submit" /> <?php comment_id_fields(); ?> <?php do_action('comment_form', ...
3
votes
1answer
3k 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 ...
2
votes
2answers
569 views

Using Disqus, how to stop storing comments in wp database?

I'm using disqus comments system, but it keeps storing the comments in the wordpress database as well. Is there way to disable option to store comments in wordpress database because I don't see any ...