Get Custom Post Type Post’s Count
Get Custom Post type posts count. This is a small snippet which will give you the count of your custom post type. Sometimes we need to show some count of published posts on a custom post type. The following snippet will help you to get it. $posts = get_posts('post_type=job'); $count = count($posts); echo $count; Also, you can get the count based on Post Status, The ...