/ Published in: PHP

Snippet from http://www.luscarpa.com/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function comment_count( $count ) { if ( ! is_admin() ) { global $id; $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id)); } else { return $count; } } add_filter('get_comments_number', 'comment_count', 0);
URL: http://www.luscarpa.com/snippets/wordpress/comments-number-without-pingbacks-and-trackbacks/
Comments
