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

Get Post ID within wp_set_comment_status hook

I am trying to update meta_value whenever I manually approve a comment inside the WordPress dashboard. I could not figure out how to do it dynamically, but it is working when I manually add a post ID: ...
0
votes
1answer
27 views

Comment Approve - Add custom function when comment is approved

I would like to save some PHP memory when quering category page (like 5000 products at once) with average review rating, so I would like to save average rating of reviews every time I will manually ...
0
votes
1answer
28 views

How can I return the result of my custom function?

I have used the following source code to add an extra city field to my WordPress comment form: <?php /* Plugin Name: Comment meta data test Version: 1.0 Plugin URI: http://wpengineer.com ...
0
votes
1answer
13 views

Newest comments first not working

I'd like to have my newest comments listed first but nothing seems to be working. In the dashboard I set In comments.php I have <?php wp_list_comments(array( 'reverse_top_level' => true, ...
0
votes
1answer
41 views

Posting a comment redirects admin/users to blank page

I have looked a lot on this problem on forums and tried out a few of the solutions but nothing seems to work for me. When I try to comment here: http://www.chicitout.co.nf/crochet-lace-skater-dress/ ...
0
votes
1answer
27 views

comment_reply_link not work with me

I have this code that get me last comments in my site : function bg_recent_comments($no_comments = 30, $comment_len = 80, $avatar_size = 48) { $comments_query = new ...
0
votes
1answer
265 views

Post Comments using WP REST API v2 in WordPress

I am using an AngularJS application with WordPress backend. I am able to retrieve comments using WP REST API v2., using the following url /wp-json/wp/v2/comments?post=1324 But is there a way to post ...
0
votes
1answer
33 views

Admin - Dashboard - Unset recent comments

I try to get rid of the comments list in the WordPress 4 dashboard section but it doesn't work. Here is what I tried: function remove_all_dashboard_widgets() { global $wp_meta_boxes;...
0
votes
1answer
37 views

Allowing comments on author pages

I need to be able to allow users to leave comments on author profile pages. I came across another answer here that has given me a basic outline of what needs to be done to allow it: Author page: ...
0
votes
1answer
11 views

Comments closed but enabled on edit screen

I have been trying different themes, and I just noticed "Comments closed" on every post. I know that it wasn't always that way, but I went back to the previous theme and then back to one from further ...
0
votes
1answer
35 views

How to enable comments meta box for other author posts?

I am working with a ticket system. which is a custom post type I created as ticket. And allowed to submit tickets in the front of my site. The registered users can post a new ticket, which Can be ...
0
votes
1answer
33 views

Comment section not appearing on posts

My comment section simply does not appear on posts, even though on my first couple test posts, it did appear. The current theme I'm using is Tesseract, in case that is relevant. Before that I was ...
0
votes
1answer
75 views

is pre_get_comments not working?

I am following through the "Professional Wordpress Plugin Development" book from WROX and I wanted to use this piece of code I found in it (I switched pre_get_posts with pre_get_comments) for my ...
0
votes
1answer
29 views

Comment form unset email

I want to remove the URL and email field from the contact form. I have removed using following filter: add_filter( 'comment_form_default_fields', 'filter_comment_fields' ); function ...
0
votes
1answer
37 views

How can I eliminate all comments going into moderation?

I've been asked to rescue an authors' blog following a sketchy plugin explosion. Following their debacle, one of the things that occurred is that all of the comments made by members are being held ...
0
votes
1answer
28 views

Modify comments_popup_link output

The following function generates the plain output eg. No comments, 1 comment etc. comments_popup_link( __( 'No comments', 'textdomain' ), __( '1 Comment', 'textdomain' ), __( '% ...
0
votes
1answer
175 views

Make custom Wordpress comments list

i'm making a custom Wordpress template and I've made this HTML code for single comment template: <div class="comment" id="1"> <div class="useravatar" style="background-...
0
votes
1answer
9 views

Comment form Dissappeared in posts

I suddenly noticed that comments and comment form never shows up in my website's posts: Comments in page shows up. but in post there is no comment. In single.php I have the <?php ...
0
votes
1answer
14 views

Comments enabled, but disabled at the same time

I have comments enabled under the "Discussion" settings (http://postimg.org/image/pvc3cb8yp/). However, every new post has comments turned off by default (http://postimg.org/image/ivagy6uuv/). When I ...
0
votes
1answer
76 views

Custom post type updated to support comments, yet comments don't appear

I have several different custom post types. One post type did not display the comment section, today I found out it was because I forgot to add it to the "supports array" 'supports'=>array('title'...
0
votes
1answer
201 views

How to import facebook comments to Wordpress database?

I want to get rid of Facebook Comments from my website, but I have a lot of comments there. Is it possible to import facebook comments to normal Wordpress comments system or something else (i.e. ...
0
votes
1answer
123 views

Woocommerce Theme Reviews / Comments

Ok so i'm creating a Wordpress theme and i'm at the point where i'm trying to get a list of the reviews but the default comments_template() HTML isn't how I need it. I don't have a /comments.php ...
0
votes
1answer
312 views

edit-comments.php in Admin - how to change 'Comments' title?

How can I change the title 'Comments' on the edit-comments.php page in the admin area? Thank you
0
votes
1answer
209 views

How to get replies of a comment?

Is there a way to get replies of a comment by its ID? I have searched on google but could not find anything about it. For example, I have a comment with ID 123 I want to display all the replies that ...
0
votes
1answer
83 views

Jetpack Comments Change Placeholder Text

Is there a hook or template file where I can change the placeholder text on the #comment textarea w/in the comment form? Jetpack loads the form via an iFrame which prevents changing the placeholder ...
0
votes
1answer
17 views

Comments as part of a post

Is there a way to show comments as part of a post, and not adding it with comments_template()?
0
votes
1answer
36 views

How to have a specific image show up for everyone who comments?

How can I have an image I created be a avatar for everyone who comments on my wordpress posts? So it will have my logo or something instead of a blank square? Thanks!!
0
votes
1answer
101 views

Remove comments validation (remove filter?)

How i can remove wordpress comments content validation, I do not want to or examined the earlier there was no such comments. I see for: http://codex.wordpress.org/Function_Reference/...
0
votes
1answer
58 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 ...
0
votes
1answer
95 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 ...
0
votes
1answer
326 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
270 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 $...
0
votes
1answer
73 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
164 views

Can wordpress comments have titles and taxonomy?

I have a business directory theme that has a custom post-type for businesses and replaces wordpress comments with its own commenting feature called reviews. I was wondering if its possible to ...
0
votes
1answer
139 views

Prevent Contributor to show comment list

How can I change WP so the Contributors will not show to comment for other post, So they will see only the comments to their post?
0
votes
1answer
22 views

Redirect first time comments

So I want to add a comment redirect code to my comment form. I know I have this part right here: <input name="redirect_to" type="hidden" value="http://domain.com/thank-you" /> So what I want ...
0
votes
1answer
24 views

Posting XML in comment section

Users post XML data in my comments section frequently due to the nature of my content, but due to the way the comments work, the elements are consumed and do not appear properly. In fact, when I look ...
0
votes
1answer
306 views

Trying to post a wordpress comment on my site redirects to 127.0.0.1

My commenting system used to work fine, but now it redirects to 127.0.0.1 whenever I try to post one. Any ideas on how to fix this?
0
votes
1answer
86 views

How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?

Sorry if the title was confusing, I'm having a bit of trouble explaining here. I'm working on a theme for my site, and I'm using a slightly modified version of a custom comments template found here. ...
0
votes
1answer
16 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
51 views

Removing categories, Comments etc from posts?

im wondering if there is a way to completely remove this feature from my website as i have no need to categorise any of my posts - i plan to post projects in pages from my left sidebar with a static ...
0
votes
1answer
74 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
321 views

Custom comments list, right depth

I created a custom comments_list() function, it works fine, the only problem is to show child comments inside the parent div. It works well with first and second depth levels but not for others. This ...
0
votes
1answer
101 views

transition_comment_status gets called when untrashing comments

I can't seem to figure out why untrashing a comment, calls my "approve_comment_callback"-action. Any ideas? I just don't want it to send two emails at the same time, when I untrash a comment. Here ...
0
votes
1answer
310 views

Display DISQUS on homepage

I have installed disqus and I want it to show up on my homepage. It replaced the old wordpress comments system on pages and posts but I also want it to appear on index.php my index.php file now - > ...
0
votes
1answer
86 views

Trash a post, send associated comments into the trash bin (change status)

When trashing a post, all comments associated with this post get the status "post-trashed". They do not end up in the trash bin. In my theme the author gets a point for posting a post or a comment. ...
0
votes
1answer
51 views

Sort post by last commented

I tried this : <?php if ( have_posts() ) : query_posts(array('orderby_last_comment' => true)); ?> But it's not working
0
votes
1answer
16 views

User's Comments Number: Storing it in a meta field for different uses

As I am building a new website where tracking users' information is key to engage, etc..., I found it important to be able to store users' number of counts as a meta. The main reason for storing the ...
0
votes
1answer
51 views

Auto disable comments with custom field

i have this code to disable comments after X days based on publish date. How can edit this code to auto close comments based on a specific date using custom field? Thank you. function close_comments( ...