Display complete comment section via post ID
Display complete comment section via post ID
Display complete comment section via post ID
Problem solved. It was an unclosed div. Lesson learned: first validate your code completely, then ask for help 😉
You can use the function update_user_meta for logged in users and the php function setcookie for the visitors. Here is a start how to work with update_user_meta You can run this function on submission of the form or by running it by AJAX, i would recommend you to run it with AJAX. function wpse_update_user_commentform() { … Read more
I found the solution to my problem. When I searched for the answer I first encountered a solution which stated that it was a problem with the id of the form. I changed that by changing the id to something else: comment_form(array(‘id_submit’ => ‘submitform’)); But that still didn’t work. In the end it was because … Read more
For anyone who may be interested, I think I may have found a solution – this tutorial outlines how to customize comment_form(), Jetpack will simply override the styles set.
to remove it from the left. Delete the line containing wp_list_comments from comments.php to display user name add comment_author();, for email use comment_author_email(); & for url use if(get_comment_author_url()) comment_author_url();. comment_text() is already there. These all go in the markup inside the function in functions.php
Emails are sent to site admin(settings->general E-mail Address) when you check the email me option . No need to worry if you un-check that assuming you are not using any plugins that overrides.
You’d probably have to do this in javascript, but I’m guessing the reason you want to add a class is to style it differently? If so, just use different styles for #respond that is inside a reply container. So perhaps the style would be .comment-replies > #respond or something similar.
Your translated code seems to work fine. I tried putting it in comments.php of said theme, and the comments are appearing (at least when displaying single post). Try disabling plugins and check if you have accidentally deleted the call to comments_template(). That being said this is really not the way you should be translating WordPress … Read more
Your action is called whenever comments.php loads because you’re explicitly running it with do_action. Both the function and add_action should be in functions.php, and do_action should be removed entirely.