Yes you can use
wp_count_posts( $type, $perm );
function to count number of posts published
For details please visit here
Related Posts:
- How to add an admin notice upon post save/update
- Including categories in search results
- Ajax Load More Posts in Category Page
- How does one reduce the number of stored revisions?
- How to Group Posts by the First Letter or Number?
- Show the title of the latest post by author
- Developing a secure front end post editing form
- Forcing oembeds to top of post
- I’m having some issues with previous_post_link() and next_post_link()
- Specify number of posts in my ‘tax_query’
- Add a custom option to a page in backend
- Where is the “ancestors” post object attribute?
- How can I display a specific user’s first published post?
- custom single.php not working
- How to show a full post, not just an excerpt
- get selected post using $_GET
- Can a page_id and a post_id be same?
- How much of my site can I recover from public_html?
- How to hide first gallery for every post?
- How to display related posts by subcategory and not parent category
- Get posts by name and taxonomy term
- Is it possible to create a form post wordpress custom navigation link?
- creating front end image uploader that uploads images as posts
- How can I sort posts by the date and a custom meta field?
- Cannot get $post object in name_save_pre hook
- Update Modified date when scheduled posts get published
- XML-code sent via the POST method to the URL (API) [closed]
- Get all images in post and comments like Twitter before post title
- How to list recent posts in a wp nav menu?
- “Right Way” to make custom Loop respect reading settings inside admin panel?
- WordPress does not output “post” class when calling post_class() function
- How to check if single.php has already called the_post_thumbnail function
- WordPress query_posts by tag doesn’t work anymore(?)
- why does wordpress ignore the post args?
- obtain the author id given the post id
- Get current post data into array?
- do more action after I publish a post
- Retrieve only posts from a specific user in wp-admin/edit.php
- Adding an Archive button to posts page for administrators
- Delete all drafts?
- Post list display year wise
- How can I add a box to edit Order on a regular post?
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- WordPress 302 Redirect to Random Product/Post/Page
- Sort by last word in title
- Add code to a specific post’s content
- Using AJAX and PHP to load next post object
- Post Status Frontend Announcement
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- Optimize CPT-function with a loop
- When using Tribe Events Calendar, querying for a specific event category returns nothing
- If post exists, make it a comment in existing post with same name?
- How to display only one category in a custom post type?
- Use Post as Front Page
- Possible?! A contextually titled back link
- Post navigation using date
- Error while excluding a post from another loop (using its ID)
- definining own teaser text for post
- I need to create “View Profile” and “Edit Profile” links by incorporating the Post Title/ID, but can’t seem to manage it
- Turn off display for custom sidebar post widget when on the post it’s displaying
- Post picker custom field on page
- How to order posts in WordPress by date?
- How to remove special characters in post title
- Search results with pagination not working
- My post permalinks are redirecting to the post archive page for some reason?
- How to retrieve all meta data directly from the $post object? Such as $post->related_topics?
- Exclude posts in a category on one page but show those posts on a different page
- Hide or remove custom post status
- custom post single page
- show loop id post , only first id can read
- Add id attribute to h1 element of wordpress post
- Loading posts outside wordpress
- Creating interactive drop down lists in a post [closed]
- Difference between modified post and new post
- Problem with wp_insert_post()
- Disable archiving of old posts?
- Customizing individual images on posts
- Allowing Users to Delete Their Posts
- How to add a class to links inside posts text
- Query post category & remove any post id
- Converting Posts to Pages
- Changing a field value on submit using a PHP variable
- No comments on static front page
- Latest comment post should be the first post in the blog
- Run Jquery Script after delete post in front end
- How to limit the number of results for all query_posts on mysite
- how to show posts on different pages if number of post per page is one
- The next_posts_link() works only with original $wp_query
- Latest news mini images
- User driven content problems
- Admin moderates ALL comments (including post author)
- Load posts from external source if not found in database
- jquery: getting contents of #content field on post page
- Not displaying any articles on a custom made file
- How to show total view count across all posts for an author
- How can we pass a value from the_permalink() at WordPress?
- How to redirect image attachment to its original post
- How can I make my blog private? [closed]
- Filters do not work when there are multiple (one works)
- WordPress Ajax load doesn’t work