• valloq

    (@valloq)


    I am trying to achieve this result:
    There are no comments
    There is 1 comment
    There are x comments

    I cannot use the normal comments_popup_link for this simply because I don’t want the entire “are no comments”, “is 1 comment”, “are x comments” to link, only the “no commments”, “1 comment” and “x comments”.

    Here’s what my tag looks like:
    <code>
    There <?php comments_number('are <a href="' . comments_link() . '"> no comments','is <a href="' . comments_link() . '"> 1 comment','are <a href="' . comments_link() . '">% comments'); ?></a>
    </code>

    And it’s outputting totally screwy code to the point where I don’t know what it’s doing. Any help?

  • The topic ‘comments_number and comments_link’ is closed to new replies.