Lego2012
12/13/2016 - 2:42 PM

Get number of posts

Get number of posts

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

global $wp_query;

$np = $wp_query->found_posts;