/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Enable Threaded Comments * http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/ * **/ function myfunction_enable_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', 'myfunction_enable_threaded_comments');
URL: http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/