comments reply script not working

Don’t link the script file directly. Enqueue it instead, e.g. in functions.php: function mytheme_enqueue_comment_reply() { // on single blog post pages with comments open and threaded comments if ( is_singular() && comments_open() && get_option( ‘thread_comments’ ) ) { // enqueue the javascript that performs in-link comment reply fanciness wp_enqueue_script( ‘comment-reply’ ); } } // Hook … Read more

Comments not appearing at all

Stupid question : Is it possible that your theme doesn’t include the comments on display? In addition to settings, your theme must display comments. The default function provided by WP is comments_template (to use on single.php and/or page.php) : comments_template( ”, true ); UPDATE ————————————————— I believe there is something wrong with the theme “hueman”. … Read more

How do we remove the H3 tag for the reply-title I.D

Today there is a native option to do this without hacking the core, or doing tricky filters with output buffer. You just need to use the filter ‘comment_form_defaults’ and edit the values from ‘title_reply_before’ and ‘title_reply_after’ key: add_filter( ‘comment_form_defaults’, ‘custom_reply_title’ ); function custom_reply_title( $defaults ){ $defaults[‘title_reply_before’] = ‘<span id=”reply-title” class=”h4 comment-reply-title”>’; $defaults[‘title_reply_after’] = ‘</span>’; return … Read more

Comment Reply javascript

You should really use comment_form() instead of rolling your own. Still, if you must, make sure that: The textarea has id=”comment”. The wrapping container around the entire comment form (probably a DIV) has id=”respond”.

Allow variable amount of comments before pagination

This have several components to it – what option itself holds and how value from it is stashed away and reused by various pieces of core code. I am not sure this is perfect, but my quick take would be: new Adjust_Comments_Per_Page( 10, ‘years’, ‘category’ ); class Adjust_Comments_Per_Page { private $amount; private $term; private $taxonomy; … Read more

Custom comment type based on thread level

I don’t know why somebody downvoted this question. This is a GREAT question. Yeah, that’s totally possible. What you would want to do is use comment_meta to store the titles. You could add the new field into the form using the ‘comment_form_top’ action. It runs before name, email, and url, and still runs if the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)