Counting the posts of a custom WordPress loop (WP_Query)

Quick and simple:

1
$count = $custom_posts->post_count;

Revisions: (Show)

Tags: ,

No comments yet.

Leave a Reply