When YHC got the last minute invite yesterday to SubstiQ for an injured Leprechaun, I immediately jumped to action, assuming he’d hurt himself
$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; ?>***Don't mistake the title above. I am not suggesting I am a runner, but rather it is an extremely cute play on words of combining mine and Run
$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; ?>