Title: Customizing the comments_number output
Last modified: August 18, 2016

---

# Customizing the comments_number output

 *  [inglorion](https://wordpress.org/support/users/inglorion/)
 * (@inglorion)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/customizing-the-comments_number-output/)
 * This is what my comments_number code looks like at the moment:
 * >  <?php comments_number(‘No comments’, ‘1 comment’, ‘% comments, ‘number’); ?
   > >
 * I want the output to be linked to the very first comment on the single page, 
   _if_ there are any comments. This means that all outputs, except ‘no comments’,
   will be linked.
 * How do I go about doing that?

Viewing 1 replies (of 1 total)

 *  [tjakka](https://wordpress.org/support/users/tjakka/)
 * (@tjakka)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/customizing-the-comments_number-output/#post-454801)
 * `<?php
    if(comments_number(0, 1, ‘%’) > 0) { #popup }else{ echo ‘No comments’}?
   >` Something like that?

Viewing 1 replies (of 1 total)

 The topic ‘Customizing the comments_number output’ is closed to new replies.

## Tags

 * [comments_number](https://wordpress.org/support/topic-tag/comments_number/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [tjakka](https://wordpress.org/support/users/tjakka/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/customizing-the-comments_number-output/#post-454801)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
