Created
September 28, 2015 18:51
-
-
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;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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