WordPress.org

Ready to get started?Download WordPress

Forums

Display comment number as words? (3 posts)

  1. MitchellB
    Member
    Posted 5 years ago #

    Is there a way to modify the comment number to show a word instead of a number?
    Ex:

    Zero Comments
    One Comment

    I know those are possible just through the comment_number tag. But how about when you have more than one comment? The general use is just "%" to display the number in numerical form. Is there a way to display the number in word form?

    Does any of this even make sense? XD

  2. Ze Fontainhas
    Moderator
    Posted 5 years ago #

    Do you mean like this?
    <?php comments_number('zero', 'one', 'many'); ?>

  3. Ze Fontainhas
    Moderator
    Posted 5 years ago #

    Do you mean like this?

    Just reread. You're asking if it's possible to have "two comments" and "three comments" and so on... It's not possible with standard Template Tags, but I imagine a plugin could do the job...

Topic Closed

This topic has been closed to new replies.

About this Topic