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.
0
votes
1answer
52 views
How to check if commenter is the_author?
What's the best way of checking if my commenter is also the author of the post that he post comment on?
I know there's a css way (.byauthor), but how about PHP? How to compare post author with ...
1
vote
1answer
128 views
Notify comment author upon reply
To improve communication between guest commenters and authors, I am fiddling with a script that sends an email to the author of a comment when it receives a reply.
Here is how the code looks so far:
...
1
vote
1answer
52 views
Delete all one-word comments
I'm trying to delete all wordpress comments with only one word. I found this mysql query to delete all comments at once, but that's not what I want to achieve:
DELETE FROM wp_comments WHERE ...
1
vote
2answers
40 views
Changing “submitted on date” of comments
How do I change the "submitted on date" of a comment to an earlier date? I want to change the date that is displayed to the readers. As far as I know, I can change the date of the post by clicking the ...
0
votes
1answer
62 views
Comments numbering on multiple pages
I have a problem with the numbering of my comments when they extend to more than one page. On the new page the numbering starts from again from 1. Also, on page 2 the pingbacks/trackbacks don't appear ...
0
votes
1answer
53 views
modifying the comment form
I see that there are lots of filters and things you can do to remove fields or modify them. I have found some useful ones on this site. I want to take it a step further because I want to do some ...
0
votes
1answer
63 views
Display the first post's comments of category in comments.php template
I want the display the comments from first post of the category only.
Example;
Category
- Post 1 (2 comments)
- Post 2 (1 comments)
- Post 3 (5 comments)
If I am reading the Post 2 or Post 3, I ...
3
votes
1answer
109 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>';
...
-1
votes
1answer
22 views
I need help about wordpress of members section
function yg_yorumsuz_link_gizle($content) {
global $current_user, $post, $wpdb, $yg_yorumsuz_yazi;
$mesaj = '';
//Eğer giriş yapılmamışsa
if ( !is_user_logged_in() ) {
$mesaj = '<a ...
0
votes
1answer
63 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
Now I want to add one more column of ...
0
votes
3answers
93 views
Insert data on comment post
I am trying to find reference for comment_post to insert custom data to custom table when comment post.
I want to insert below things to my custom table
Comment's Post ID
Custom content (which ...
2
votes
2answers
47 views
multiple comment text areas
I need to create a user comment form with three text areas and then display them in comments. I don't know where to start - cannot find any plugin but would like to code it anyway. Any pointers much ...
1
vote
1answer
84 views
Let user edit his own comment
can I allow user to edit his own comment (without, username, url, or mail) on front-end. For example simple form on custom worpdress page with his comment and submit button.
Thank you all in advance!
...
1
vote
2answers
61 views
Limit user to one comment
is there a nice function I can use to limit logged in users to one comment per post? I'm setting up a review system and only one review permitted per user. Thanks.
0
votes
0answers
86 views
Buddypress notification on post comment reply
I have one question. Is it possible to make when, someone reply to comment, the author of parent comment to recieve notification in buddypress. For example, if I reply to user comment in notifications ...
2
votes
1answer
56 views
edit_comment capability for subscriber
I have given my site's subscriber role the following permissions (unserialized DB-query):
[subscriber] => Array
(
[name] => Reader
[capabilities] => Array
(
...
1
vote
0answers
23 views
Number/ Position of a Comment
Does anyone know a good way to get the count number or position of a comment under a post?
In the known comment array there is only the related_post_ID not the relative number in the affected post.
...
0
votes
1answer
49 views
Hide Trackbacks/Pingbaks if none exists
I managed to get my comments numbered and then to separate the comments from the pingbacks and trackbacks. The only problem I have now is that I don't want to show the title of this section (where the ...
2
votes
0answers
68 views
“Allow Comments” box cannot be checked
I've registered a custom post type, ensured that 'supports' has 'comments', and comments are allowed on new posts under settings -> discussion.
I do see the check boxes for allow comments and allow ...
0
votes
1answer
38 views
different levels of nested comments per page
I am working on a wordpress site that usually allows three levels of nested comments. But I would like for (at least) one specific page to allow only one level of comments => no nesting.
How can I do ...
0
votes
1answer
36 views
Wordpress is adding <!— page-who-we-are.php --> above html
Wordpress is adding this comment above all HTML on my site which is causing problems in IE in which the site won't render properly at all.
How do I stop WP adding this?
Tried disabling all plugins ...
2
votes
1answer
79 views
Deep customization of the comment form?
I've been handed over a design to translate into WordPress plugin & theme. My question is regarding building a custom comment form.
The design used some custom scripts on the comment submit ...
2
votes
1answer
36 views
Hook to edit an column on comments screen?
At the moment I'm doing
add_filter("manage_edit-comments_columns", function($columns) {
unset($columns["author"]);
$columns_one = array_slice($columns,0,1);
$columns_two = ...
1
vote
0answers
45 views
Incorrect redirection after commenting on custom type
I use custom post type, and when users make a comment on page
www.mysite.com/custom-type/2013/01/20/post-name/
they are redirected to
www.mysite.com/2013/01/20/post-name/#comment-2231 [e.g. without ...
2
votes
1answer
47 views
get recent comments of a particular category
I am using get_comments('status=approve&number=5') to display recent comments in my wordpress sidebar. I need to display the recent comments of a particular category. How to do this?
0
votes
1answer
92 views
Make email not required comments.php
I need to edit my comments.php to make emails NOT required. I've attached my code below, I understand that I need to get rid of $req and $aria_req from my email field, but as the site is live I don't ...
0
votes
0answers
18 views
Custom Pagination for a Page with Comments [duplicate]
Possible Duplicate:
Pagination not working with custom loop
Hello everybody and good even.
The Problem:
I have a Page where the comments are listed like the posts a displayd in a ...
1
vote
1answer
27 views
Polls with respective comments?
I am using wp-polls plugin. It's working fine. Instead I need some more things in this which are :
I want to use comments with each poll. (I think this can be possible
when adding A New Poll, A New ...
0
votes
1answer
84 views
Allow admin roles to add images to comment replies
this may be a step too far but I publish occasional tutorials on my personal blog and sometimes in comments get asked questions where an image would be very helpful to include as the answer. I've done ...
2
votes
1answer
194 views
Wordpress admin bar showing pending comments which cannot be selected or modified after deleting parent page
My Wordpress admin interface shows there are 4 pending comments, but I've already approved three and deleted one of them via Disqus comment moderation page, but the page they were posted on was later ...
2
votes
1answer
128 views
Show Custom Comment Fields when editing in admin
I'm using the Custom Comment plugin to add custom fields to my comments.
This plugin lets you define more fields for comment to let your visitors include their facebook, twitter and ... in their ...
1
vote
1answer
61 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
18 views
Repositioning 'Reply' Link in Comments
I'm calling my comments the ol' fashion way:
<?php wp_list_comments('avatar_size=60'); ?>
I would like to be able to position the 'Reply" link where I choose. Right now, it defaults to the ...
0
votes
1answer
50 views
Passing user meta through comment form
I want to create a hidden field in the user comment form storing the logged in users info (already created a custom field at registration) so I can pass it to the comments section to display on the ...
0
votes
2answers
75 views
Recent comments per tagged post?
Could you please help me with some code to get all recent comments for posts that are tagged with for example "XYZ"?
Thanks in advance, you guys are great!
0
votes
1answer
100 views
I don't have comments.php… how do I customize my comment fields
My page in question is here.
I have tried to add a comments.php to my custom theme so I can remove the website field and so I could edit the default values of the fields and remove the labels. When I ...
0
votes
1answer
39 views
How do I get the comments section to show up?
My theme does not seem to be showing me the comments section, this is the PHP code I have in my index.php file inside the template folder
<!-- Start the Loop. -->
<?php get_header(); ?>
...
0
votes
1answer
31 views
Check the Comment in Reply or Normal State
I'm currently working with custom comment meta, and I have some custom additional field such as rating etc, when user write a comment ( not comment reply ) I want to show the rating field, but when ...
1
vote
1answer
66 views
Display comments on a comment page without form
I'm using this to allow me to display my comments for posts on category pages:
<?php
$wp_query->is_single = true;
comments_template();
$wp_query->is_single = false;
?>
However I don't ...
0
votes
1answer
71 views
approve,spam,trash etc. options are not coming on comments in admin panel
I made some changes in comment-template.php, wp-comment-post.php so now I am storing the comments withot attaching with any post or page (I am setting the comment_post_id to 0).
But now the problem ...
0
votes
2answers
73 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 ...
0
votes
2answers
96 views
strange behavior with comment position
I've created a custom content.php and removed any comments on the content.php page
then i changed the sharing-service.php from jetpack and added comments_popup_link there:
// Wrapper
...
1
vote
2answers
53 views
Display commenter's registration date on comments?
Is there any way to display a user's (registered) registration date on the comment.
Lets say i have a written an article, registered users A, B, C and D left a comment on my article.
I can display ...
-1
votes
1answer
216 views
Add an attachment feature to comments
Is there a way to allow attachments with wordpress comments?
I know of a paid plugin that allows this but I was hoping for someone to point me in the correct direction that's future proof and doesn't ...
0
votes
2answers
68 views
In list with recent coments - only show one comment per page/post (latest comment)
I am trying to make a custum 'Recent Comments' code for use in the sidebar. I have come a long way, but there is just one thing that doesn't do what I'd like it to do.
What I want is that, per page ...
-2
votes
1answer
73 views
Integrate comment system in the sidebar?
I would like the comments of a post and the comment box to appear in the sidebar.
How can I do that?
2
votes
1answer
176 views
How to export comments in WordPress?
I want to export my comments to Excel, PDF or Word. The format really doesn't matter, I just want them exported.
I tried the Export Comments plugin, the standard one, but couldn't get it to work, I ...
0
votes
0answers
35 views
Unapproved comments showing in Firefox using Twenty Twelve comments code [closed]
I am having a issue with unmoderated/unapproved comments displaying in Firefox only. All other browsers are fine.
On a post it says 0 comments and then shows that the comments need to be moderated ...
1
vote
1answer
26 views
Show only if x comments?
Is there any function that will show some content only if there are more than x comments ?
For example show some banner only if more than 10 comments are in post ? Thanks :)
1
vote
2answers
118 views
get_comments_number of depth-1 (Level 1) (1 post)
I selected only 2 levels of comment for my wordpress site.
How can I display the number of comment of the first level ? (Depth-1)


