Counting the posts of a custom WordPress loop (WP_Query)

Quick and simple:

$count = $custom_posts->post_count;

Revisions

Tags: ,

No comments yet.

Leave a Reply