Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $my_query = new WP_Query('post_type=testimonials&posts_per_page=-1&status=publish');
- $count = $my_query->post_count;
- return intval( $count );
- $count = $my_query->found_posts;
- status=any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement