İ found a solution:
$posts = get_queried_object();
echo $posts->count;
Related Posts:
- How to display by default only published posts/pages in the admin area?
- Using single.php from plugin folder instead of default template folder
- Static posts page with home.php
- Pagination not working on Custom Page Template
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- Remove custom posts that match taxonomy value
- Using Custom Posts with Metaboxes and Drop-downs
- Is there any WordPress alternative to Book module of Drupal?
- disable column on post and user list
- Posts vs. Pages
- How to display data in archive page?
- Set terms in a custom post
- Get posts of ONE taxonomy term of custom post type
- Adding buttons to Add New Post and Add New Page
- Duplicate Custom Post Type and Taxonomy Slug
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Static posts page with home.php
- 404 error on default post type and default taxonomy fronted page
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- disable Tab post on nav-menus page (Admin)
- relating business and products with custom taxonomy?
- WordPress Query Posts From Category Post on Static Page
- Organization of time insensitive content
- How To Use Custom Tax of a Post Type
- How to output all taxonomy links from a custom post type in a menu?
- What would causes search to return incorrect results?
- Changing permalink of WordPress
- Added a ACF field to custom page and want the results to show as a column in admin
- Put page on Archived statut after end of publication date
- post and page and custom post type
- Page with Category Returning 1
- Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Permalink base only for posts
- Multiple Custom Post Type loop logic
- How to list all names and descriptions of a custom taxonomy
- Allow users to create their own page/s
- 404 for some custom taxonomy not ALL taxonomy
- Make a custom URL and link to custom Template
- Special Query: Title, Terms, Content – %LIKE%
- Automatically delete default posts and pages on theme install?
- How to have more post in a page than in your home page
- custom post type single page template not working
- Adding Count Post in Page
- Taxonomy Category category.php not working
- How to have 2 posting pages on a blog
- Edit Page button is gone
- How can i limit the number of posts created per category?
- Search results posts_orderby and ID
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Getting Custom Post Loop to display in Bootstrap 3 column grid
- Turn On Comments On Custom Post Types in Directory Theme
- WordPress custom Query for Posts in Category display posts multiple times
- Responsive images with custom image size
- Making a custom Pagination for multi page blog post
- ERROR: Your feed is invalid (after update WP4.7) in custom types
- Post categories to pages
- Switch to page template when using post permalink
- Editing the default page to show all posts, rather than most recent ones
- Unable to restore from backup – how to obtain old blog posts?
- 301 (static page instead latest posts)
- Get Posts Under Custom Taxonomy
- Integrate OpenStreetMap on WordPress
- What’s the best way to render Visual Composer in posts, not pages?
- Prepending %category% onto default posts fails
- get_adjacent_post by language
- Automatically add date to the auto generation of post slug
- How to handle broken links created by permalink/slug changes?
- Permission issue with custom post type – not added to menu – by plugin
- Get Page ID of blog homepage
- How could I change my Permalink from blog to custom structure? [closed]
- Take a received feedback item, turn it into a post
- Getting value from get_post_custom
- WP Admin register taxonomy and post type performance
- Add a custom meta box in the post options that loads some html code in the header
- Second comments section for one post/page
- Calling Different Custom Post Timestamps in a table
- How can I setup a relationship using categories in WordPress?
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Admin – create custom post status and display above table
- custom post template file not shown, instead all the time 404.php
- How to display posts via custom taxonomy terms using checkboxes?
- Set Default Category to Username
- How to allow visitors to filter posts by multiple taxonomies
- How can I hide tags on a child-category page, if that tag has not been used?
- show custom post type category dropdown sorting result on same page
- Custom Post Type Rewrite To Include Parent Page(s)
- Overwrite posts/pages via import
- Auto-realod with new posts // Ajax call
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- Start post pagination at 0 instead of 1
- Thumbnail & Category link aside post
- Hooking into the post editing screen for an existing page only
- Redirect to another page using contact form 7? [closed]
- Display Notification Bar on Header on Certain Post Count
- How do I do a page break?
- Is there a way to specify an extra class for a post or page with no title?
- Automatically create a new page daily with last three posts
- Using wp_list_pages() after calling query_posts()