Questions tagged [comment-form]
This tag outputs a complete commenting form for use within a template. Most strings and form fields may be controlled through the $args array passed into the function, while you may also choose to use the comment_form_default_fields filter to modify the array of default fields if you'd just like to add a new one or remove a single field.
268
questions
0
votes
1
answer
605
views
comment_for() Custom fields not visible when user is logged in
i have added some custom form fields using comment_for() as well as filtering the comment_form_default_fields and comment_form_defaults hook for the purposes of using a custom comment field as well as ...
0
votes
1
answer
758
views
comment_notes_before not working
In my code, comment_notes_before doesn't show anything.
<?php
$args = array(
'class_form' => 'add_review',
'label_submit' => __( 'Leave a review' ),
'...
0
votes
1
answer
2k
views
How to make custom comment fields required
In wordpress theme i create a custom field with name city in comments form.
Its showing and save data well. But problem is that its save the value while its empty. Need Its show error when submit form ...
0
votes
1
answer
197
views
display user roles in comment form
how can i show user's role in comment form near their name?!!
for example when admin reply a comment i want to show "admin" word near admin name
or when a user buy a product from my site and send a ...
0
votes
1
answer
531
views
Add comment_meta to wp_comment_reply
I have added some custom meta data for all my comments. I show this meta data in the backend. However, I would like to be able to insert metadata in the wp_comment_reply editor as well:
I thought I ...
0
votes
1
answer
59
views
How to create post comment from different domain
Using an API plugin i have been able to build a site that combines content from multiple Wordpress websites. I want to give users the ability to quickly leave a comment for one of these posts without ...
0
votes
1
answer
753
views
Send email messages after comment was submitted
I need to send 2 email messages: if comment was submitted and when comment was approved. Without any plugin of course. How can I do this?
0
votes
1
answer
788
views
how to add a comment button to be displayed only for the posts in the home page [closed]
I need a button which directs to the comments section of that particular post. I want that button to be displayed only in the home page for every post.
Can anyone help me with this
My website url is ...
0
votes
1
answer
376
views
Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
I am trying to modify the comment displayed in the comment list and for that i am using the following code:
add_filter( 'comment_text', 'modify_comment');
function modify_comment( $text ){
...
0
votes
1
answer
61
views
Custom comment-field form arrangement [closed]
How can I move my custom comment fields above the comment field?
Currently i am using hooks comment_form_after_fields and comment_form_logged_in_after. Unfortunately due to Wordpress 4.4 changes, ...
0
votes
2
answers
2k
views
How to properly enable comments form in page template
I've applied the following code to enable the comment section in the page template.
<div class="col-md-12">
<?php while ( have_posts() ) : the_post(); ?>
...
0
votes
2
answers
708
views
How can I embed comments plugin to my own website?
I am looking for a way to embed WordPress comment form to watch.php in order to allow user to comment on a specific video. Can you tell me how?
0
votes
3
answers
3k
views
Custom comment field not showing when logged-in
I've added a custom field in comment by using
function comment_label($fields){
unset( $fields['url'] );
$fields['rate'] = '<p class="comment_form_rate" id="rate_recipe">
...
0
votes
1
answer
2k
views
How to add a category to comments?
I am currently trying to add a category to the comments on my wordpress site. I already added a title to these and tried several ways to add a dropdown (selection) list to the comment form but I am ...
0
votes
1
answer
552
views
Comments on future posts
I have enabled future (scheduled) posts to display as single post so on that page comments are enabled but there is a problem when i try to post comment. I get a blank screen without any warning or ...
0
votes
1
answer
2k
views
Create customized captcha field to wordpress comment form without Plugin
I did asked a similar question some time ago but i couldn't get a useful answer. I would like to ask again.
I actually wanted to add a field called "security" to prevent those autobot to send me ...
0
votes
1
answer
599
views
get_comment_meta not behaving as expected
I'm sure this must be a silly error by me but I haven't been able to solve it...
I added an extra 'rating' field to my comments form so that users can rate posts. Everything works fine and by using ...
0
votes
1
answer
115
views
unsetting required fields in the comment reply form
Is there a way to make differences between the normal comment form and the reply-to-form?
For example, I added a set of required radiobuttons to the form which make rating by commenting happen.
Now, ...
0
votes
1
answer
820
views
Change Twenty Twelve's comment form in a child theme
I have a custom child theme of Twenty Twelve.
I want to change the text "Leave a reply" to "Leave a comment", and also remove the website field from the comments form.
How can I do this? Thanks.
0
votes
1
answer
1k
views
Add a Custom Field in Comment Box next to the Text area
Good Day. I Recently try to figure out for adding the custom field in the comment box it working fine. Still I need to know how to add the custom field after the comment box. I am not sure how to do ...
0
votes
1
answer
82
views
Returning error upon comment being flagged as spam
Hello Im using a custom filter that hooks to pre_comment_approved to look for bad words in a custom way. Now when the comment gets flagged it returns spam.
How could I post back an error to the ...
0
votes
1
answer
2k
views
enable TinyMCE for comment forms
Is there any way in Wordpress to use a richt-text-editor (preferable the build in TinyMCE) on the comment form textarea in the frontend? I had such a feature in earlier versions, using the plugin "...
0
votes
1
answer
5k
views
custom comment_form fields not displaying
My ideal comment form will have 3 fields- Name, Location, Comment.
I'm using the following bits of code-
comments.php
<?php comment_form(
array(
'fields' => apply_filters( '...
0
votes
1
answer
81
views
Output comment_author in array
In functions.php for part of custom comments, I have the following echoed array as the link to respond to a previous comment:
<?php echo comment_reply_link(array(
"before" => " <span class=\"...
0
votes
1
answer
520
views
Facebook comment url is unreachable
i've added facebook comments on my wordpress blog, it's working fine and everything but on some pages it displays the comment box and under it it gives a warning url is unreachable and it doesn't show ...
0
votes
1
answer
1k
views
comment_form - show all fields when logged in
I'm using the http://codex.wordpress.org/Function_Reference/comment_form in my comments. If logged in I'm seeing only the textarea for my comment, not the fields for e-mail and name.
Question
Is it ...
0
votes
1
answer
98
views
How can I remove the comment form on one or more specific pages in twenty eleven?
I would like to remove the comment form on one specific page. Is this possible?
0
votes
1
answer
1k
views
wp-comment-post.php and header already sent issues
I'm new here and I really hope somebody can help me.
I've tried alone for many days, found a lot of solutions that worked for others, but that didn't work for me and so I really hope somebody here can ...
0
votes
1
answer
110
views
How translate it? Intensedebate
http://www.part.lt/img/4490330b04db19a9043999a460246e39489.JPG (IMG)
Look at yellow background.
How translate it, to Lithuanian lang?
Thanks!
I using IntenseDebate comments system.
0
votes
1
answer
350
views
How to add extra field in admin comment section
I wish to add extra field in post comment section while admin is logged in.
Screenshot
I just add subject field in template comment form.But i couldn't store in db and retrieve it.
How can i do ...
0
votes
1
answer
101
views
Fix threaded comments
http://anasianscreations.co.cc/jeffman/blog/uncategorized/hello-world/
I have looked all day for a solution but whenever you click on reply to this comment, instead of the comment box being displayed ...
0
votes
1
answer
322
views
How to filter comments by comment_meta
EDIT: Yay, solved it! I needed to use new WP_Comment_Query( $args ) and set my $args to only include the current post and the meta chosen. Thanks!
Thanks to the wonderful help of the community here, I ...
0
votes
1
answer
56
views
How to create a classified section in place of comments_template
I am running a site where users can find great information about musical artists and their releases. Each release is a wordpress post. Each artist is a wordpress post. In my single-artist.php and my ...
0
votes
1
answer
154
views
Changing the Comment Fields using Filter (without success)
Am I doing this all wrong or should this be working? No matter what post I visit, it's thrown into an endless loop..
This is the code:
add_filter('comment_form_fields', 'comment_form_args');
function ...
0
votes
0
answers
2k
views
COMMENT FORM Error: Please type your comment text
Error: Please type your comment text.
I Created COMMENT FORM but Error happened which is above.
I dont know hot to fix this
Anyone help me please
Thank you very much!
Function.php
/** コメント一覧表示部分のコード(...
0
votes
0
answers
28
views
How do I make the comment disappear after deleting from the database?
I can delete the comment from the database with this code, however when the page is loaded again the comment will still be there. I need to update again to disappear.
How do I resolve this?
...
0
votes
1
answer
655
views
Modify "Must be logged in to comment" text/links?
My site requires users to login to comment. Unregistered and logged out users see "Must be logged in to comment. You may also register for an account."
How do I change this text and the ...
0
votes
0
answers
31
views
comment just attachment .. reply just text ... can I do that?
I want comments just to upload videos without text
but replies the opposite
I mean comments just to upload videos.. without text area
...
in replies its a must to write in text area without any ...
0
votes
1
answer
40
views
How to put the author of the post in the comments?
I need to put the name of the author who wrote the post and I can't find the solution.
EXAMPLE:
Rachel [06/03/21] : Commented in the post "How to be a Web Designer", written by: POSTAGE ...
0
votes
1
answer
69
views
Custom sort comments with select form
I use ACF Pro to create a customized comments section with additional fields to my custom post type called Products (it's a simple page with a custom comment section, NOT using WooCommerce).
Now ...
0
votes
0
answers
47
views
Edit Comments Fields
I need to edit the comments fields.
1 - The metadata should be only date;
2 - The comment itself should be trimmed;
3 - the word 'says' next to the name should be gone;
I believe I can manage the ...
0
votes
1
answer
819
views
Display the list of user's comments + the post title + date
I am trying to display the current user's ALL comments in a specific page and I'm using this code (uses a shortcode): https://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/
...
0
votes
1
answer
198
views
Replace text by icon in TinyMCE toolbar
I added TinyMCE in the post comment textarea by adding this into my child theme function.php
function rich_text_comment_form( $args ) {
ob_start();
wp_editor( '', 'comment', array(
'...
0
votes
1
answer
41
views
Comment Form Development Issue
I am new to wordpress theme development and I am trying to create a custom comment form. I read the documentation and I have a reach a point that I am happy with the layout but I have 2 issues with ...
0
votes
1
answer
53
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 ...
0
votes
0
answers
22
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
1
answer
383
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
1
answer
286
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
0
answers
244
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
1
answer
893
views
Comment author profile image
I have a custom comment form and any one can add comments without creating an account. Now I want to set comment author image for each of the comment. I could not find any function or support for this ...