I'm late with this backblast, it's from my Q on April 20th at The Appetizer - Tuesdays 1730 at Rea View Elementary. If you haven't been, you shou
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value if ( comments_open() ) { if ( $num_comments == 0 ) { $comments = __('No Comments'); } elseif ( $num_comments > 1 ) { $comments = $num_comments . __(' Comments'); } else { $comments = __('1 Comment'); } $write_comments = ''. $comments.''; } else { $write_comments = __('Comments are off for this post.'); } echo $write_comments; ?>In trying to continue the high standards of creative fun we've been having in these 2.0 friendly evening workouts, I knew I had to bring my ball-
$num_comments = get_comments_number(); // get_comments_number returns only a numeric value if ( comments_open() ) { if ( $num_comments == 0 ) { $comments = __('No Comments'); } elseif ( $num_comments > 1 ) { $comments = $num_comments . __(' Comments'); } else { $comments = __('1 Comment'); } $write_comments = ''. $comments.''; } else { $write_comments = __('Comments are off for this post.'); } echo $write_comments; ?>