Did you tried fetching the requested posts with WP_Query?
$posts = new WP_Query();
$posts->query( array(
'posts_per_page' => -1,
'author' => $curauth->ID,
'post_type' => 'photoshop_tutorial'
) );
$post_count = sizeof( $posts->posts );
Related Posts:
- taxonomy list display custom post count
- get_queried_object error How to show post count by month in the taxonomy page
- count_many_users_posts except current logged in user?
- How can I show a custom post type for users in the authors.php file?
- How Can I Set the Post Author of a Post I Just Created With PHP?
- custom post type category count shortcode
- Display an authors post on a single page only when they are logged in
- Restrict category access to specific users/groups. Author always has access
- WordPress Count posts within a custom post type
- Custom post type title of each author in his own post
- Display author box on just certain category posts?
- How do I find the count of the current post?
- Get queried object for custom post type count
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- Delete Post by User
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- how to show Author post type count
- Remove slug from custom post type post URLs
- How to get post content by calling ajax?
- Get category id from post id of a custom post type
- Limit widget to a specific registered sidebar
- WP_List_Table Inside Metabox Not Working on Submit
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add metabox with media uploader in a custom post type [duplicate]
- Showing current taxonomy terms
- Show Custom Post Type by Author
- Newer/Older posts links display same posts on every page
- automatically create taxonomy with same name as post title
- custom sortable column
- Wp-query causing problems with the_content();
- saving custom post type data to different table in wordpress
- Display “Post 2 of 4” on single post page?
- Query post types with multiple keys
- How to embed form data within the ‘Add new post’
- When viewing single parent post, display list of children
- Limit Authors to their Own Posts on front-end excluding admins
- Remove Post Page “View Post” Link
- Get all posts WHERE custom_field is LIKE value
- How to make post sticky in the admin page?
- Loop on front-page.php
- How to create custom boxes with text inside?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- How to only show posts assigned to current user, only in certain post types
- How to make sure content doesn’t display if selection is empty
- Disable block with taxonomies at post page
- Which post does a taxonomy term belongs to?
- Changing custom type name hides the posts
- Add custom field to Posts and sort by it
- Two Custom Post Types Many to Many Relationship
- Problem with displaying posts in the CPT category
- How to change the post type a theme shows by default?
- URL rewrite add author as base
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- Reworking function for counting custom post type posts count
- help
- How to Display Posts From Category Within a Custom Taxonomy?
- How to Make infinite loop of post
- WP_Query with custom post type ID
- Published post auto change status to pending after 90 days
- How to retrieve all wordpress posts (specific type) inside a function in php?
- post body class for current user only if they are the post author
- Automatically update slug with latest title within custom post type [duplicate]
- Modifying the default post from wordpress
- How to Query in WordPress which shows Alphabetic Posts?
- Find custom post type url by author
- Display latest posts of author in a custom post type
- Does “Custom Post Type” can have page hierarhy option?
- How set template for “custom post type” individual post
- A sports wordpress website
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Settings -> Reading -> Posts Page ->Blog — is not working in my website
- Is it possible to get the specific content on the search page?
- How to mass get post editor URLs
- How to create additional rendering for custom post types?
- SELECT custom post type and its meta in SQL
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- How to show custom post count in archive page
- How to create editable sections in wordpress?
- Instructor can view, edit, delete only theirs courses
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- subtracting the current post form then whole loop, which is generating all CPT titles
- Assign for all post of a post type a specific single-post template
- Widget area for individual posts (custom post type)?
- Author archive custom posts only?
- update a posts of other custom post type
- How to prevent authors from editing their post count?
- Show custom post type under last posts configuration
- Custom Post Type used for FAQs Accordion
- How to Associate Posts with Pages
- delete custom post type using a submit form
- Why are my wp urls showing page not found?
- Post content stays the same but permalink changes ?
- Can I set a CPT title field to a dropdown with preset options if user is of a given type?
- Styling first post using Advanced Custom Fields
- How do I display the index position of a post from a custom post type?
- How to change post cpt with submit button?
- Storing every individual update to the posts being updated over time?
- Change post structure