Forums
Home / Fixing WordPress / using links with comments_number()
(@jimday1982)
17 years, 8 months ago
Is it possible to make the output from comments_number() appear as links instead of just plain text? Currently, I’m using:
<?php comments_number(‘No Responses’,’One Response’,’% Responses’); ?>
I would really like to have the ability to click on the “one response” or “two responses” and be taken to the comments.
Any ideas?
(@newflesh)
The comments_popup_link tag can be used to both output the link and set the text like you want, so you don’t need the additional comments_number tag.
Perfect – thanks! I saw that in the docs, but the “popup” part threw me off, so I didn’t even both to look at it.
(@jimday1982)
17 years, 8 months ago
Is it possible to make the output from comments_number() appear as links instead of just plain text? Currently, I’m using:
<?php comments_number(‘No Responses’,’One Response’,’% Responses’); ?>
I would really like to have the ability to click on the “one response” or “two responses” and be taken to the comments.
Any ideas?