Display “Post 2 of 4” on single post page?
You could create a new query for all posts in your custom post type, then iterate through each and match it to the current post id to figure out its position. // save current id to match later $current_project_id = $post->ID; $args = array( ‘post_type’ => ‘project’, ‘posts_per_page’ => -1 ); $all_projects = new WP_Query( … Read more