Skip to content

Instantly share code, notes, and snippets.

@lschatzkin
Created September 28, 2015 18:51
Show Gist options
  • Save lschatzkin/5ff95d78e391c6679fab to your computer and use it in GitHub Desktop.
Save lschatzkin/5ff95d78e391c6679fab to your computer and use it in GitHub Desktop.
count number of posts in WP_Query results $post_count = $freereads_query->found_posts;
$my_query = new WP_Query($freereads_args);
$post_count = $my_query->found_posts;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment