You can enable threaded comments for posts using a simple trick. WordPress does not enable threaded comments by default, but you can do it using this code in functions.php


function ax_threaded_comments(){
 if (!is_admin()) {
  if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
   wp_enqueue_script('comment-reply');
  }
}
add_action('get_header', 'ax_threaded_comments');

Thanks to wpshout for this trick.

Yumna Tatheer

I am a Computer Science graduate and a part time blogger from Lahore, Pakistan. I am a PHP programmer and a wordpress expert.

More Posts

Follow Me:
Facebook