Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
0answers
11 views

Problems displaying comments of users currently login

I want to show only the comments that are echo of the logged users, how can I achieve it, I can help. Thanks
0
votes
0answers
7 views

How to add reply comment feature in custom comment form

I have created a custom comment template; Here created a form and stored the data in my custom table. The stored data showing from table in frontend. This comment form is calling with in a loop for ...
0
votes
1answer
25 views

Check if comment author has url

I wanted to add target=_blank to comment author link and also wanted to add redirection link to url. So here is what I did: <a href="site.com/go?url=<?php echo get_comment_author_url(); ?>" ...
0
votes
1answer
15 views

The comment could not be saved. No comment_ID on comments

Every time I try posting a comment logged in as an admin, I get the following message: [ERROR: The comment could not be saved. Please try again later.] But when I actually go to the database, I find ...
0
votes
0answers
9 views

Comment box is not displaying in my blogs

I really have problem with comment box. Comment box is not displaying on my website. I did everything. I check settings, I checked screen options, comment and discussion box are ticked. But still I am ...
0
votes
0answers
6 views

Use custom profile field in comment

On registeration I added 2 custom profile fields. How can I use these 2 fields on the comment section. For example I want to display the value of "City" field, just before the nickname, for example :...
2
votes
1answer
27 views

Does wp_new_comment expect a comment in HTML?

Should the comment_content in this example contain HTML? Or should it contain plain text? $comment_id = wp_new_comment([ 'comment_post_ID' => 1, 'comment_content' => 'Tom & Jerry', /...
1
vote
1answer
42 views

How to add consent checkbox in comment section

To fulfil the GDPR policy, I want to add a consent checkbox under the "Post Comment" section. I have followed the WpBeginner tutorial and put the following code in my Comment.php file // Now we will ...
1
vote
0answers
19 views

Showing unapproved comments without login

I'm working on a wordpress theme for my website. My website doesn't allow to sign up and my theme's blog page have comments section and it allow making comment without login. But there is a problem ...
0
votes
1answer
23 views

How to direct user after comment save

I've been trying to direct the user to the specific page after they posted the comment, but that not luck for me. Here is the my code blocks My first try: add_action('wp_insert_comment', array($...
0
votes
0answers
24 views

Comments to post content

How to batch move comments to post content? I plan to migrate from WP to static site like jekyll/hugo/hexo, but there are difficulties with exporting-importing comments.
0
votes
1answer
13 views

How to display comment meta under each comment content

I'm trying to display comment meta under each comment, but I couldn't find which action should I hook in.
0
votes
0answers
23 views

User Comments on separate author page

I have added the user comments to author page (archive template), after the blog posts if any. So on page www.my.blog/author we have blog posts and all the user comments display below the posts. ...
2
votes
0answers
24 views

Comment pagination - How to show determined number of comments on the first page?

I set 10 comments for every page. If I have 20 comments, it shows 10-10 on the first and last page. However if I have 11 comments, it shows 1 comment on the first page. How to display 10 comments on ...
3
votes
1answer
60 views

Why Allow Script Commands in Comments?

I noticed that if you are an admin or editor, you are able to put in script code like this in comments (not in the page/post editor) for admin/editor roles: <script>alert("Danger, Wil Robinson!"...
0
votes
1answer
32 views

Sent comments notifications to multiple users

I am new to wordpress I want to send email notifications for commenting in blogs. Currently it is going to only one user. I tried 'comment notifier' plugin but got negative result. I tried the below ...
0
votes
2answers
30 views

Moving FB comments at the end of page

I am using plugin "wpdevart facebook comment" for posting comments at the end of every post. They are displaying good But now I want to shift those comments little below of pagination and ads Or at ...
0
votes
1answer
24 views

Custom Avatars for Wordpress Comments VIA Website URL?

I've tried a couple different wordpress plugins and solutions but nothing is quite what I'm looking for. I want to adjust my theme/wordpress so that avatars for my Wordpress commenters are grabbed ...
0
votes
0answers
33 views

“Comment is awaiting moderation” gone!

As i said this notification is gone after new Wordpress update. I can't find solution. My comment lists coming with this code: <ol class="comment-list"> <?php wp_list_comments( ...
1
vote
0answers
20 views

How To Add a Transition style to Wordpress Comment Box? [closed]

What I am looking for is to have the comment box slide down when a user clicks the reply button. I have tried several ways of adding my own CSS transition to the respond id and even did a height ...
1
vote
0answers
19 views

How to make an WordPress element sticky? [closed]

I'm trying to make an element sticky on my article. This is the element- Name: WP-Review <div Class=sticky-review> <?php echo do_shortcode("[wp-review]"); ?> </div> I tried CSS- ...
1
vote
0answers
11 views

WP_Comment_Query - Get comments and answers separately

I was developing a theme and this time I chose to use the bootstrap4, I found some difficulties in the way but I managed to solve them and the result was satisfactory, however creating my comments.php ...
0
votes
1answer
13 views

Comments/Discussion Not enabled on newly created posts/pages

Like the title says, new posts and pages do not automatically have comments enabled, even though I have the option checked in discussion settings. Any ideas why it may not be working?
1
vote
0answers
38 views

Send reply with pre-prepared answers

Do you know the way to ask users' comments with pre-prepared answers? What i want is very simple and more like a comments section that only can select and remove emojis without typing and have 4 ...
1
vote
1answer
14 views

changing font size and font of a custom message added after comment

hi i have added a code in function file of the theme to show a default custom message after the user leaves a comment of the blogposts . it reads like this . add_filter('after_comment_text', '...
1
vote
0answers
25 views

posts comments goes to trash

My website was working fine until today, I just discovered that all comments made goes straight to trash. I did not install new plugins, I don't have akismet. It just started. I have deactivated all ...
1
vote
0answers
9 views

Comment Form - custom field

I have a custom field on the comment form, I would like to hide the custom field when it's a reply to a comment. essentially view the field it's a new comment only.
1
vote
0answers
8 views

wp-comment author- url +, email filter hook

Don't know how to change '@' and 'HTTP/S' in ALL comment-stuff, so those will be displayed in WP as unclickable contents. Do you have the knowledge and patience to straighten the following lines? ...
1
vote
0answers
18 views

How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?

I wanted to migrate disqus comments to my WordPress. I found some guide post https://www.ampercent.com/migrate-disqus-comments-back-wordpress/21729/ https://help.disqus.com/import-export-and-syncing/...
0
votes
1answer
17 views

Comment field override

i have a strange problem with altering comment text field in single post. I've created $fields = array(). Inside this array, besides other fields, I've also added: 'comment_field' => '<p ...
0
votes
1answer
49 views

How to stop ultimate members to redirect comment authors to user profile?

I'm having a problem with the Ultimate Member plugin. The comments author links get redirected to the user profile. I need the basic WP feature- pointing to author URL/website. The plugin is ...
0
votes
0answers
28 views

How to show comment author URL next to comment author?

By default, the comment author links to their URL. But I have changed that to their profile. Front-end profile generated by a plugin. Now when anyone clicks on author name they are redirected to the ...
1
vote
1answer
36 views

Problems with comments callback (Argument #1 is not an array?)

I built my callback function using class-walker-comment.php as a reference and am at a loss as to why it's not working. Any help is greatly appreciated. The issues I'm encountering are: 1) Avatars ...
1
vote
0answers
47 views

How to implement a rating and review system for WordPress custom posts?

I want to have a rating and review system for custom post type. This is the method i am thinking of ->Create a custom post type ->Create meta fields ->Create a form to post reviews front end. But ...
0
votes
1answer
26 views

How to make comment reply available only for login members of a certain user roles only?

I use the default public WordPress comment system. But I want to make my comment reply only available to admin and author user roles. How do I achieve that?
1
vote
0answers
16 views

Remove link preview in discussion dashboard

It can be sometimes bothersome when, in the Discussion (Comments) dashboard, where the admin can see a list of comments, moving the mouse over a link will cause a preview of that link. Sometimes the ...
0
votes
1answer
10 views

wp_mail doesnt work inside transition_comment_status

i need to send a notification for a visitor that got hes comment published. So, i created this function /************************************************* ** COMMENT APPROVED HOOK *******************...
0
votes
0answers
17 views

How to add delete, approve, spam Links to Comments

I am developing a plugin where I list all the available comments and then I want to have a links like Delete, Approve, Unapprove or Spam etc. I have followed a thread here: Add delete, approve, spam ...
0
votes
0answers
19 views

Changing WP_Editor Comment Field HTML loses default button style

WordPress version 4.9.6 I can change all the Comment Form Field markups except Comment_Field without losing the default WP_Editor MCE skin (lightgray). As soon as I change the Comment_Field it all ...
0
votes
0answers
12 views

To enter comment as a logged in user in my app

I have developed an app in ionic in which I am retrieving posts from my WordPress site. Now I want my registered users in the app to be able to post comments in the posts on Wordpress site without ...
1
vote
1answer
20 views

Do I have to have a nonce for a custom comment field?

im working on my comment section and I have added a custom field <input type="hidden" name="be_user_star_rating" id="be_user_star_rating" value="" /> Its value is beign set by Javascript. ...
1
vote
1answer
30 views

Notification if Comment Author Field is left empty. E.g. change input border colour

I am having a comment section on my website. The author comment field is required. Any idea how to display a notification for a user if author field is left empty after submitting the comment? ...
0
votes
1answer
46 views

Internal post link creates comments on it's own

This is by far the strangest I've experinced... Hoping someone can help me out here? So if I were to create post named Hello World. Then create a new post called "test" with a link to post Hello ...
1
vote
1answer
15 views

how to change comment author's link from user's website to author's page(author.php)?

I am making theme. and in my custom post type comment, I using wp_list_comments( array( 'style' => 'div', 'short_ping' => true, 'avatar_size' => 0, 'reply_text' =&...
2
votes
1answer
20 views

How to dont allow registered users to comment without being logged in?

Currently, if users have a registration on website they can post their comments without login too, only using their email address. In this way registered users' avatar will be shown on the site. If ...
0
votes
0answers
11 views

How to build this commenting system?

I am trying to replicate the commenting style/system used on geniuskitchen.com. Please click on this link to check it out and scroll to the bottom of the page . http://www.geniuskitchen.com/recipe/...
0
votes
0answers
38 views

Reply to comments and nested comments

i'm crating my first wordpress theme, and i'm dealing with the functionality of the comments, I don't really know how to make the replies work on a nested comment. This is what i have so far on my ...
-2
votes
1answer
56 views

Comments are not working on Custom Post Type

Looks like that everything is set then why the comments are not appearing on the Custom Post types single posts? can some one please help me.
0
votes
0answers
15 views

Unapprove child comments when parent is unapproved

Is there a way to unapprove a child comment when the parent comment is unapproved? Or is there a hook that fires when I unapprove a comment? At the moment only my parent comment is unapprove when I ...
0
votes
0answers
12 views

Modify comment form for custom post type

I am developing a plugin where I have to modify the default comment form of WordPress only for a custom post type. The modification includes changing texts such as Leave a reply,Comments(2) and also ...