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)

0
votes
1answer
38 views

linking to an svg through comments_popup_link

I want to remove the text in the comment section and replace it with svg which falls back to png. This is my code so far <?php comments_popup_link('<object type="image/svg+xml" ...
0
votes
0answers
14 views

Admin post comments not returning in get_comment function

I don't get the comments of the post submitted by admin in user side. From the users side, I want to show the admin post and each posts comments. I am writing the following code, $args = array( ...
0
votes
0answers
11 views

Count comments + last pub date for subcategories

How do I get the comment count for a subcategory in this loop? So every child category of 225 had comments. That amount I want to list per child. Tried some stuff with get_comments, but unsuccessful ...
0
votes
0answers
20 views

Email “child comment” author when attached post has been deleted!

This function works great when trashing a comment or deleting a child comment, manually. But when I trash a post or even delete it, the action "delete_comment" doesn't seem to run. function ...
0
votes
0answers
25 views

Comment Nav versus jquery Tabs

I have a page full of comments. These comments have 3 custom_fields assigned to it (using get_comment_meta): New In Progress Solved From my page I call the comments using: wp_list_comments( ...
0
votes
1answer
27 views

Broken comments section - Wordpress 2014 Theme

I recently switched my Wordpress theme to the "default" 2014 one. Everything looks great, except I'm having trouble with comments showing up correctly. Can somebody help me understand what's wrong? ...
0
votes
1answer
30 views

Copy and Paste Password for Comments

One of my newer clients has an extensive WordPress blog (on SE I am a Joomla man) and I am sure there must be some reason behind this. For comments it asks you to copy a password - and then paste ...
0
votes
1answer
129 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
0answers
16 views

Prevent comments from being rendered as HTML

I would like users to be able to enter XML structured text in the comments, but wordpress consumes the tags and they are not rendered. How can I disable this functionality? HTML is not important to ...
1
vote
0answers
45 views

Display date and time in comments

I use wp_list_comments(); to display a list of comment in WordPress. But it does show the format characters instead of the correct datetime. How can I fix this bug? Thank you.
5
votes
2answers
538 views

What for is the table “wp_commentmeta” exactly?

I have been reading about the Database Description of Wordpress. I haven't understood the meaning to the use of the table wp_commentmeta. The documentation says: Each comment features information ...
0
votes
0answers
6 views

Comment box html [duplicate]

I want to allow users to be able to use the codes <ol>, <ul> & <li> in the comment section, but my google-foo is weak (100% chance I'm using the wrong keywords), mind helping me ...
0
votes
0answers
31 views

Turn off comments for given CPT checkbox?

I'm wondering what's the best way of turning off comments for a Custom Post Type? I don't want to turn it off completely which is quite easy but to create a checkbox in wp-admin that will turn off ...
0
votes
0answers
118 views

I want to use ONLY Disqus and turn off default Comments

If I set "Comments: OFF" (Discussion > Allow comments > OFF) on post - Disqus (and default WP Comments) does not show on single post. I founded in settings (Comments > Disqus > Plugin Settings) ...
0
votes
1answer
66 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
0answers
52 views

Hook into trash_post_comments, update_user_meta

I have a theme where the author get points for posting posts and comments. When I trash a post, the user get 1 point removed from their score. This works fine with this function: However... When I ...
1
vote
1answer
96 views

When trashing a post, also trash related comments

As it is now, when I trash a post, the related comments get deleted at once. Is this standard? Instead I'd like them to be moved to the trash bin, when I trash the post. How can I achieve this? I ...
0
votes
0answers
202 views

spacebar is not working in input and textarea

i have displayed comments box with <?php comments_template(); ?> and now when i am styling the input and textarea. Surprisingly both are not allowing spacebar. That means when i type something ...
1
vote
2answers
294 views

Count all comments of a custom post type

I know how to count comment per post, user and in total but i am having problems getting the total amount of comments post in a specific post type. I guess i can loop trough all the posts and count ...
1
vote
1answer
29 views

WordPress comments work locally only?

Here's my issue: on localhost: comments just work for both registered & logged in users AND for guests, live (on-line): comments work only for registered & logged in users, comments posted ...
0
votes
0answers
18 views

Comments - Ensure the correct field is highlighted for nested replies

I've got my comments working great, well.... Just about Great!!!! I'm a passionate UX guy doing my blog. I've got the comments form to beautifully reposition its self under neath a comment so that it ...
0
votes
1answer
25 views

Apply comment to different post (not the current post) [duplicate]

I'm building a scrolling page website and on that page I have comment form and some posts from different categories. Comments applied to wrong post. Is there a way to choose the post I want ? ...
0
votes
0answers
96 views

wp-editor-area textarea disapear on cancel-comment-reply-link click

I am using this tutorial to implent the wp_editor in comments. everything went fine except when i click on cancel-comment-reply-link. the form move on to its initial position on the bottom of ...
0
votes
0answers
149 views

Ajaxify comments and insert new submit

I tried to ajaxify my comments system on wordpress. But I have some difficulties to understand what is the right way to insert the comment submitted. In fact, I'm asking if there is a way or a ...
0
votes
0answers
14 views

How can I change the author of the comment from the admin control panel?

How can I change the author of the comment from the admin control panel? A more detailed explanation, how can I change the value of the user_id column (which is located in the wp_comment table) from ...
0
votes
0answers
21 views

Trashed “comment replies” still visible?

When I send a "comment reply" to the trash bin it's still visible on the site. It only disappears after you've deleted it permanently. Is there a way to fix this?
1
vote
1answer
42 views

Deleting the attached “comment replies” when trashing a comment

When sending a comment to the bin, the attached "comment replies" does not get trashed or deleted. How can you configure wordpress so that when you trash a comment, the comment replies automatically ...
4
votes
1answer
1k views

How do I set up real anonymous posting in bbpress forums? [closed]

I have bbpress-post-topics plugin installed so that my comments forms are replaced by a bbpress forum topic, it's working but I would like to enable anonymous posting. Currently, as you can see ...
0
votes
1answer
33 views

Conditionally process comments while ignoring replies

I use a WordPress theme that awards users points (kept track of in user meta-data) for posting comments. However, they are not awarded points for replying to a comment. When I move a comment to the ...
0
votes
1answer
30 views

What's the difference with trash_comment and wp_trash_comment?

I don't understand when I'm suppose to use trash_comment over wp_trash_comment. What's the difference?
0
votes
1answer
98 views

What is the point of get_comment_count() if you cannot limit by a comment type?

We are finding that large WooCommerce sites run very slow. Amongst many issues, this one has me scratching my head. WooComemrce stores order notes in the comments table, giving them a comment_type of ...
0
votes
0answers
94 views

How to load comment form with AJAX?

We have a Wordpress website with a large number of logged in users. Hence, we cache as much as possible, which includes post pages. We've setup our website so that that the page is mainly dynamic, so ...
0
votes
1answer
47 views

Wordpress comment for virtual page

How to create separate comment section for all the virtual pages? Is this even possible? Do I have to create separate table to store the comments and do all the work myself or is there any ...
0
votes
0answers
19 views

Wordpress comment for URL rewritten pages

I am rewriting URL like this product/product-category-name/product-name Here product is the real wordpress page, the rest are generated by database query. So, there is only one comment section which ...
-1
votes
2answers
50 views

check if a comment was made by a registered user

Is there any Conditional Tag to check whether a comment is made by registered user or not?
0
votes
0answers
1k views

Connect LDAP with Wordpress-Login

I have a wordpress-page where i offer webapps, mostly for free. Now, I want to connect this page with my LDAP-directoy from my first page. I tried several Plug-Ins but they did not work, yet. I am a ...
1
vote
2answers
264 views

Get comment content by comment ID

So I've been trying for a hour or so now to list comment by it's ID. I've tried the get_comment($id, $output) function but it didn't work well, so I went back to whatever is shown below, but it just ...
-1
votes
1answer
140 views

Changing comment_count to views

I have a plugin installed to show the latest popular posts based on number of comments. But comments are disabled on my website. How can I change it to number of views? And do I need to install ...
-2
votes
1answer
28 views

Number of unpublished comments for each post

How can I show the number of unpublished comments for each post in a theme? I have searched, but I found nothing. I also need to show published comments number for each post.
0
votes
0answers
205 views

Comment-Meta doesn't work with latest wordpress update

I already had this script working, but since the last update of the wordpress core it doesn't save the comment-meta anymore. /** * Comments Winner */ // Add new heading to comments tables ...
0
votes
0answers
40 views

My WordPress comments appear repeated even though it is not

My WordPress comments appear repeated even though it is not. It get repeated n times as comment exists. Here is my comment.php code: <?php function my_comments_callback( $comment, $args, $depth ...
0
votes
0answers
42 views

Move the 'Reply' link to the end of existing replies

I'm using a custom theme based on _s but I think this is standard WordPress behaviour. Currently, if an existing comment already has several replies, the reply link remains just below the original ...
0
votes
1answer
33 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
0answers
42 views

Listing comment author role code problem

I use the following code on comments template: <?php $user = get_userdata($comment->user_id); echo $user->roles[0]; ?> But the weird thing is that it is ...
0
votes
0answers
94 views

Comments orderby comment date not working

I have a template to get the comment replies to a user and display it on a static page. It works reasonably well in so far as the correct comments are displayed but whatever I try I can't get the ...
0
votes
0answers
37 views

Genesis framework comments broken?

I got a really weird problem. Im using a Child theme which using the Genesis framework. I was using Akismet plugin to stop the spammers and it was workin just fine. Recently i just made a comment by ...
0
votes
1answer
21 views

What is the earliest hook comment meta can be saved?

I'm trying to integrate a new security checker service into WordPress comments. My goal is to tell the service's api to scan all links in a comment. My question is: what is the earliest (or most ...
0
votes
1answer
15 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
2answers
89 views

Wrong IP address in comment section

I have noticed that the last few times in which I have linked to an old post of mine from my latest post, my IP address in the Comments section is wrong (sometimes my IP address appears in the form ...
0
votes
1answer
145 views

Display avatar with comment form?

I can display the current user's avatar alongside the comment form when posting a new comment with $current_user = wp_get_current_user(); if ( ($current_user instanceof WP_User) ) { echo ...