Archive Post Count

0.0/5
<?php
add_shortcode( 'wpd-post-count', 'display_post_count' );
function display_post_count( ) {	
	$count = $GLOBALS['wp_query']->found_posts;
	return $count;
}

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet archives the number of posts.

Author

Tags

This snippet is untagged