Tagged Questions

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)

2
votes
1answer
392 views

Custom disqus_identifier not properly changing default value

I have several pages that are all part of the same topic, and I would like them to use the same comment thread on Disqus. I am using the following code to pull the custom identifier from a custom ...
1
vote
0answers
46 views

Trackbacks not displaying

I'm building a new theme and I'm just working through the Theme Unit Test requirements in the Codex. I'm stuck on the Many Trackbacks test. My theme doesn't show any Trackbacks but for the test post ...
1
vote
1answer
33 views

Comment number does not increment

I am making a custom wordpress theme and when I add a comment to a post and retrieve the number of comments using get_comments_number() the number does not change. I do know the function works ...
0
votes
1answer
300 views

Custom action on comment post

Whenever a user posts a comment, I'd like to basically have a copy of the post sent to another database for a separate site. The database part is simple, but I can't seem to find the right action hook ...
2
votes
1answer
697 views

Display user's total comment count outside The Loop

How do I display a user's total comment count outside The Loop? I use this code to display comment count inside the loop: <?php global $wpdb; $user_id = $post->post_author; ...
0
votes
1answer
1k views

Is it possible to show custom comment metadata in the admin panel?

I've customized my comment form with a new field (city, but that doesn't really matter). I've hooked and filtered and added my comment metadata with add_comment_metadata. I want to show that metadata ...
1
vote
2answers
141 views

unregistered user can write in blog page - possible? how to?

I'm working on a site wherein the owner wants people(potential real estate clients) to be able to write their home-owning hopes, dreams, desires, etc. I'm thinking something similar to the ...
1
vote
1answer
67 views

How to list posts with disabled/closed comments, with pagination?

i'm interested how to display all posts (from all categories) that have closed/disabled comments? I have tried using the comments_open() function inside the loop, that works, i don't know how to ...
1
vote
2answers
351 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 ...
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
61 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
97 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
266 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
49 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
77 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
141 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
93 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 ...
4
votes
1answer
688 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
82 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
96 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
805 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
178 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
405 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
130 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
2k 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
371 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
547 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
168 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
235 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
70 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
91 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
104 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
861 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
37 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
224 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
722 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
82 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
188 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 ...
2
votes
1answer
893 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
60 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 ...