Enable Threaded Comments in WordPress


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // enable threaded comments
  2. function enable_threaded_comments(){
  3. if (!is_admin()) {
  4. if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
  5. wp_enqueue_script('comment-reply');
  6. }
  7. }
  8. add_action('get_header', 'enable_threaded_comments');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.