Please wait, loading...

 

How to Enable Threaded Comments in Wordpress - Emerald Tech

May 1, 20120

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @ Yamna Tatheer CEO Emerald Technologies Registration Number: 3520166158082