Posted By

alp on 06/06/11


Tagged

wordpress comments threaded functionsphp


Versions (?)

Wordpress: Enable Threaded Comments


 / Published in: PHP
 

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

  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');

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: TourKick on July 23, 2011

Same results as I mentioned here: http://snipplr.com/view/55260/

You need to login to post a comment.