WordPress.org

Ready to get started?Download WordPress

Forums

using links with comments_number() (3 posts)

  1. jimday1982
    Member
    Posted 8 years 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?

  2. newflesh
    Member
    Posted 8 years ago #

    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.

  3. jimday1982
    Member
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic