Wordpress: Enable Threaded Comments


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



Copy this code and paste it in your HTML
  1. /**
  2.  * Enable Threaded Comments
  3.  * http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/
  4.  *
  5.  **/
  6. function myfunction_enable_threaded_comments(){
  7. if (!is_admin()) {
  8. if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
  9. wp_enqueue_script('comment-reply');
  10. }
  11. }
  12. add_action('get_header', 'myfunction_enable_threaded_comments');

URL: http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.