How can I count articles retrieved by tags October 13, 2022 by Tarik Billa WP_Query has a post_count property: codex. $recentPosts = new WP_Query($args); $count = $recentPosts->post_count;