Rather then just printing the word 'comments', I'd like it to display '7 comments', or however many there are. Any ideas how to go about doing this? my current code looks like this:

function zen_comment_wrapper($content) {
  return '</div><div id="comments"><h2 id="comments-title" class="title">'. t('Comments') .'</h2>'. $content .'</div><div>';
}

Comments

dbirider’s picture

I tried using 'comment_num_all($nid)', but that didn't work. I'll post the code for my latest unsuccessful try below. Any other ideas? I'm pretty new at this.

function zen_comment_wrapper($content) {
  return '</div><h2 id="comments-title" class="title">Comments</h2>' . comment_num_all($nid) . '<div id="comments">' . $content .'</div><div>';
}
akalata’s picture

Component: Code » layout.css
Status: Active » Closed (won't fix)

Closing old/inactive requests.