Forums
Home / Installing WordPress / Customizing the comments_number output
(@inglorion)
17 years, 7 months ago
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?
(@tjakka)
17 years, 2 months ago
`<?php if(comments_number(0, 1, ‘%’) > 0) { #popup }else{ echo ‘No comments’ } ?>` Something like that?
(@inglorion)
17 years, 7 months ago
This is what my comments_number code looks like at the moment:
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?