Posted By

paulund on 06/15/11


Tagged

wordpress comments threaded


Versions (?)

Enable Threaded Comments in WordPress


 / Published in: PHP
 

  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  

You need to login to post a comment.