I'm having problems with counting posts of a custom post type called 'projects' and like to add a number to the count. We did some stuff which can't be shown in our portfolio but would like to add only as number.
Basically it goes as follow:
There are 22 published projects (custom posts type called 'projects') + 11 other projects (no posts) = echo 33 projects.
Edit:
I'm using this to get the wordpress counts:
<?php
$count_posts = wp_count_posts('projects');
$published_posts = $count_posts->publish;
?>
<?php // echo $published_posts ?>
How do I get this working?
Thanks in advance.
projects
CPT? What are the 11 others? Unpublished posts? Planned projects with no presence in the DB? What?