Questions tagged [comments]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How to display comments in tabbed page

I have some custom woocommerce product page. I added some tabs (in functions.php) like this: function single_tab_callback( $tabs = array() ) { $tabs['extra_tab_kom'] = array( 'title' =&...
1
vote
0answers
51 views
+50

How does this WordPress Plugin (Thrive Comments) apply their custom comment sort?

I am building a site that uses the WordPress Plugin Thrive Comments. It allows people to sort the comment by Top Rated, Newest, or Oldest. Digging into the code I can see that Top Rated is sorting ...
1
vote
0answers
14 views

Why does my callback function not work with this custom filter hook?

I'm trying to add a new key/value pair to my comment in the database by using a filter found in a WordPress plugin. This is the function where the filter is defined: /** * Parse comment before db ...
0
votes
0answers
6 views

How can I display an “Add a Comment” button rather than the full comment form on the bottom of each post?

I'm building a Wordpress site which allows for anonymous user commenting. Rather than always displaying HTML form fields at the bottom of each post, I want to display a link or button that says ...
0
votes
0answers
18 views

“You must be logged in to comment” but I am already logged in

Latest WP running on RHEL 6.10 PHP version 7.2.21 MySQL is old and should be updated, but I doubt it's the reason. I have a Multisite setup going. I have a primary, call it blog.world.com, with a ...
0
votes
1answer
7 views

Get all comments associated with a specific page ID (comment_post_ID)

I try to get all comments of a specific post, but it is not working like the way I do want. I use $assignment->ID to get all comments for a specific page ID. Even when I change $assignment->ID ...
0
votes
2answers
29 views

get_comments with post_status 'public' retrieves NULL result

This is my loop: <?php $comments = get_comments(array( 'status' => 'approve', 'type' => 'comment', 'number' => 10, 'post_status' => 'public' )); ?> <ul class=&...
-1
votes
1answer
12 views

Comment reply href is different on production vs local

So I can reply to comments on local but it doesn't work on live. I can reply via the admin panel but when I click reply on a comment on a single page, it doesn't work. I checked the code and it seems ...
0
votes
0answers
8 views

Wordpress Comments - Cleaned Out WP_Comments Table But Still Showing On Admin

I have used MySQL queries to remove 1000s of ramdom comments on my Wordpress Blogs. But when I go into the backend of Wordpress and look at my list of Posts, it is still showing (comments column) the ...
0
votes
1answer
30 views

Review count per product

I want to get the amount of reviews of a certain woocommerce product. I have this code but it gives me the total amount of reviews (so only the amount of reviews of that specific product). function ...
0
votes
1answer
14 views

Same comment section on every page

I'm looking to basically have a unified comment section, so if a user posts on page a, it also shows on page b. I've searched online but have been unable to find any documentation on this and wondered ...
2
votes
1answer
111 views

Uncaught TypeError: Cannot read property 'firstChild' of null after upgrading to WordPress 5.5

I am getting the following error from comment-reply.min.js (which seems to be a WordPress file): Uncaught TypeError: Cannot read property 'firstChild' of null at comment-reply.min.js?ver=...
0
votes
0answers
7 views

How to sort comments by answers given in single comment

$comments = array( 'post_id' => get_the_ID(), // 'status' => 'approve', // 'hierarchical' => 'flat', 'orderby' => 'meta_value_num', ...
0
votes
1answer
19 views

Send a mail to specific address in a custom field when a new comment is made on a specific post

I am trying to send a mail using wp_mail function when a new comment is made to a specific post where a custom field is compiled with a mail. The function works, but when i try to restrict it to ...
1
vote
0answers
26 views

change wp_login url and redirect users at the same time

i use woodmart theme for my woocommerce shop. but in mag(weblog) page if a user want to submit a comment it redirects user to wp-login-url instead of woodmart login page. i found my first part answer ...
0
votes
0answers
17 views

wordpress Comments error

I am having a problem in my WordPress site, when I create a new post or update a post to my site automatically get 2-6 comments by my post (Author is post title and comment is post content). I have to ...
0
votes
0answers
14 views

How to set template type on post created with a particular taxonomy?

I have a plugin that automatically converts Contact Forms to Post. I made sure that all the posts submitted by this plugin contain a particular taxonomy. Category: "Discussion nuggets". I ...
0
votes
0answers
6 views

Comment character counter and button gray out

Hi I am trying to use a code to count and limit the characters in comments but it only partially works. I found the codes here: How to display comments length This works only as a counter for me but ...
1
vote
0answers
12 views

Customize Theme comment template to Insert VoteUp and VoteDown buttons

I am using a theme that has an okay comment template that I would not want to change. However I just want to insert voteup and votedown button directly below the User avartar <ul class="...
0
votes
0answers
16 views

1 comment per user wordpress function unexpected out come

I have a wordpress plugin that has turned off member posting ability on Pages, but my members can comment on posts. When I add the following function to limit 1 comment per post per user, it works ...
0
votes
1answer
9 views

Make every comment go to the spam folder

Wordpress comments exists in 4 states: 0 not approved 1 approved Trashed Spam When a user makes a comment it will end up in the 0 not approved folder, or if it's a spam comment directly to the spam ...
1
vote
0answers
15 views

Most commented post showing 2 records

I am trying to show the most commented post. Only one post should show but I am getting 2 even though the number of comments is not the same? <?php $args = array( 'orderby' => '...
0
votes
1answer
31 views

comment form code redirect to wp_comments_post.php with blank page

comment form in single post worked well. then after adding some customization, after posting a comment, it redirects to this link wp_comments_post.php with blank page. Here is my code in comments.php ...
1
vote
0answers
10 views

Draft / schedule comments?

I’d like to be able to draft and schedule comments, similar to how you can with posts/pages. Anyone know the best way to achieve this?
0
votes
1answer
10 views

Comment IP Plugin - Fixing onfocus='this.select()'

I'm the process of getting an old plugin to work and what I need help with, if possible, is to review the "error" I'm getting. No matter from who the comment is made, all I get is this: ...
0
votes
1answer
16 views

How to change avatar of the comment author using comment ID?

One visitor commented on one of my post as a guest. Now, i want to change avatar of this comment using comment ID. Comment ID of the comment is 1092. How can i change avatar of the comment using ...
0
votes
0answers
16 views

Update post “A” on comment submition on post “B”

Hello and thanks in advance for any help. Im trying to update the post status from a post when submiting a comment on other post, I have a variable in the url pointing to the ID of the post I want to ...
0
votes
1answer
16 views

Upload avatar for post comment

I have a comment form and any one can add comments without creating an account. Now client asking to allow user to upload profile picture from the comment form. Check attached image below. Any help ...
0
votes
1answer
17 views

How to allow duplicate comments?

i am working on an event that requires users to be able to comment, everyday on my blog for a period of them, i have been looking for the possible way to allow duplicate comments on my blog. please ...
1
vote
0answers
12 views

Wordpress comments - how to check if comment still needs to be approved?

I created a comments.php template and which contains the following code: <div class="amb-single-comments amb-container-parent override"> <div class="amb-single-comments-...
0
votes
0answers
16 views

Need a specific admin to moderate ONLY one category's posts. Possible?

I thought there would be a plugin for this, but either my search terms are weak, or this doesn't exist. Has anyone seen a solution to this? We have a ton of content, a lot of categories, and we need ...
0
votes
1answer
12 views

I have an odd field with a purple background, mentioning HTML-codes to use while leaving comments

I'm very new to this whole deal with creating websites and wordpress and all, so if there's anything basic knowledge I've missed, then I probably missed it. That saying; I have a weird issue. I want ...
2
votes
1answer
18 views

Why do comment moderators need to have all create/edit/delete toboth posts and pages?

I struggled quitea bit to be able to set up my moderator account. Until I allowed all posts and pages capabilities and now the can finally moderate comments. I didn't deactivate one by one precisely ...
0
votes
1answer
20 views

Using a static callback on wp_insert_comment

I'm trying to add a function on the wp_insert_comment hook. But when I try to add the comment on the post on the WP admin panel, I'm getting an internal server error. There are no errors being ...
0
votes
0answers
25 views

Child comments should not be below the parent comment

I have enabled "threaded (nested) comments", however, I would like child comments to appear in chronological order instead of under the parent post. Why? Within comments, it checks to see if ...
0
votes
2answers
26 views

Parent comment's author display_name

Parent comment's author name I found this code and would like to modify it as follows: if someone changes the display_name, the name in the comments should also change. I was able to achieve this ...
0
votes
0answers
15 views

Change title-reply when actually replying to someone in comment_form

Is there any way to change the comment form title when replying to someone's comment. For example, I set my comment form title to Leave a comment but when replying to someone's comment it needs to be ...
0
votes
1answer
32 views

How to display replies to his comments in user profile of current user

How to display list of replies to his comments in user profile of current user. my website can send notification that example: "someone replied to your comment" and when i click the link ...
0
votes
0answers
21 views

How to show a list of comments on home page from all posts?

I have a custom post type for games on my site (https://pokerdiy.com). I have comments on these games and now want to show a list of recent comments on the home page of my site (kind of like the ...
1
vote
0answers
13 views

Email notification to an email address other than admin for custom type post comments in wordpress

I have a customer post type called video. I want wordpress to send an email notification to one user who is going to check and approve the comments, when ever someone comments on that post type video. ...
0
votes
0answers
13 views

How to paginate comments with wp_list_comments

How to paginate comments using 'per_page' and 'page' arguments, some how like 'paged' argument for WP_QUERY works. I want to list comments passing arguments somehow this way: $curr = max( 1, ...
0
votes
0answers
18 views

PAIN. Comments Pagination

Sorry for flame, but i wasted 7-12 hours trying to understand how comments pagination works.... Never thought that simple step will take that much with WordPress :'(((( i output comments in my theme ...
1
vote
0answers
16 views

Display only 1 comment and then option to show more

I want to display only 1 comment and then have an option to "show more" to show the rest of the comments. The story behind this is that I've on the homepage a feed with cards for blog posts ...
0
votes
0answers
22 views

reply comment below the comment box without reload page

I make a comment form before comment list and I want to show a comment form inside the comment box that chose to reply without refresh the page the website I inspired the idea Novin.com
0
votes
0answers
9 views

How to add and edit comments in wordpress admin panel

I'm using cocoon theme, and now customizing it in child theme. I want to add and edit comments of posts. But in admin panel I can only see the comments that users made. Please help me.
0
votes
0answers
8 views

How do I filter comments and display it only form the page that the comments belong to?

Say I have community page and a feedback page. Comments from both pages go to comment section in the dashboard. How do I filter community page's comment and display it in the community page and same ...
0
votes
2answers
41 views

Limit number of comments from get_comments()

Following is my code which I am using to display comments of posts in a loop (Custom Post Types). I would like to display only latest 3 comments. Kindly help me to limit comments. <?php foreach (...
0
votes
1answer
21 views

Wordpress Custom Local Avatar not showing in comments

I have built my own frontend user avatar upload script. Now the avatars show fine in the user section in admin and in the top panel. However I can't seem to get them showing in the comments and author ...
0
votes
0answers
15 views

Number of total comment does not tally with the number of comment?

Please help me out, I don't know why i'm getting this... I have a WordPress multi site network running, On the main website I got 2 comment notification... I approved one and i left one pending. I ...
0
votes
0answers
14 views

Akismet marks most of the comments coming from a custom form as spam

On our website we have an HTML endpoint we load via ajax in a fancybox which loads the comments for a given post id. GET /custom-functions/comments-with-form?post_id=123 When loading it on the page, ...

1
2 3 4 5
36