If you want to know how may posts are returned by custom loop then I have a one tip for you. Its very pretty easy to do.
You have to simply paste the following code snippet anywhere on your theme. It will display how many posts are returned by the custom query.
$feat_loop = new WP_Query( 'showposts=12&category_name=featured' ); echo "Query returned ".$feat_loop->post_count." posts.";
Thanks to WP Lover for the cool tip!
If you enjoyed this article please consider sharing it!!
The post How To Get the Actual Count of Posts Are Returned by Custom Loop! appeared first on WordPress Experts.