get the id of one custom post type item for nav
-
Hi everybody, I need to display the current id of a post and the total number of posts of a custom post type in a single view, like
3 / 18
Now i managed to get the total number (18 in this case) like this: wp_count_posts(‘portfolio’);
But how do i get the Number of the current post?
get_the_ID() returns the id considering all post types, so this is spitting out something like 80 :-/Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get the id of one custom post type item for nav’ is closed to new replies.