comments_number ( $zero = false, $one = false, $more = false, $post = 0 )

  • (string|false) zero Optional. Text for no comments. Default false.
  • (string|false) one Optional. Text for one comment. Default false.
  • (string|false) more Optional. Text for more than one comment. Default false.
  • (int|WP_Post) post Optional. Post ID or WP_Post object. Default is the global `$post`.
Defined at:
Change Log:
  • 5: .


Displays the language string for the number of comments the current post has.

Related Functions

get_comments_number, get_comments_number_text, comments_rss, comment_time, comments_link

Top Google Results

User discussions

wpseek mobile