Archive | Functions RSS feed for this section

wp_count_terms

Count how many terms are in Taxonomy.Default $args is ‘hide_empty’ which can be ‘hide_empty=true’ or array(‘hide_empty’ => true).

3503

Continue reading

wp_count_posts

Count number of posts of a post type and is user has permissions to view.This function provides an efficient method of finding the amount of post’s type a blog has. Another method is to count the amount of items in get_posts(), but that method has a lot of overhead with doing so. Therefore, when developing for 2.5+, use this function instead.

3501

Continue reading

wp_count_comments

Retrieve total comments for blog or single post.The properties of the returned object contain the ‘moderated’, ‘approved’, and spam comments for either the entire blog or single post. Those properties contain the amount of comments that match the status. The ‘total_comments’ property contains the integer of total comments.

3499

Continue reading