Posted By

paulund on 06/15/11


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  


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

I'm assuming this is supposed to add the "Reply" button somewhere on the comments? I added the function and looked at one of my blog posts to see if that now shows up and it doesn't. Post with comments is here: Thanks.

You need to login to post a comment.