get_comments_number Wordpress function


Description:

Retrieve the amount of comments a post has.


Syntax:


Arguments:

(int) $post_id The Post ID


Return Type:

(int) The number of comments a post has


Define At:

wp-includes/comment-template.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_comments_number


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×