Say, you have 10 posts per page, and you have 50 posts published. You would have 5 pages of 10 posts, and the last available number of pages would be 5. As soon as you publish one more post, you should have already 6 pages of posts, with the last page now being page 6 and containing just one post.
To get the number of pages to update on the frontend, I have to go into the page editor and fiddle with the grid settings. Not change anything, just click on a few random settings. Then save the page, clear the cache, and the correct number of pages appears. But now we have to repeat this every 10 posts, which is up to twice daily at our rate. Clearing the cache on its own doesn’t help.
Also, curiously, in the editor the total number of pages shown is negatively offset by one. Where you see 5 pages of posts in the editor, it’s actually showing 6 on the frontend.
]]>Please see the screenshot https://prntscr.com/u6k7qd. My WP-Admin > Pages > All shows a count of 71 pages, but have only 4 published pages, 1 in the trash, and one is in a pending review.
Where are the remaining pages?
Thank you.
]]>{{PAGE_NUM}}/{{PAGE_COUNT}}
How can I achieve that the page counter works per order, so it will be like:
first order: 1/1, second order 1/1 etc.
Thank you
]]>Our site has 175 Posts and 80 pages. When I enable Restrict Content By Role, the page count in the “At a Glance” widget on the dashboard and in the CMS Pages Tree widget now say 175 instead of 80. It seems that the plugin causes the post count to be used instead of the page count. Screenshot of the problem.
If you go to the “All Pages” screen, the correct count is shown. Screenshot
This is not a huge problem, but I thought you might be able to reproduce it easily and fix it in a future release.
Thanks again for your work on this plugin!
]]>I was wondering if there was a setting that I can stop this from happening?
Also to add… it seems to work fine when I am logged into site, but does not work when the users or myself are not logged into site.
Thanks
]]>Thoughts?
All (4,613) | Published (112) | Draft (1) | Private (2) | Trash (208)
]]>See screenshot – https://take.ms/mfsk9
I think it would be good to have this, as I just needed it.
There is no count for how many pages, published pages, drafts, etc. like there is for the “Show Hidden”. It would be great to have this and ideal, because this is what the WP Core features. As it is now, to get a count you have to revisit the default Wp pages list.
And if it could be done it would be great to have support for this plugin in that All Pages, Published area… https://www.ads-software.com/plugins/prepare-new-version/screenshots/ – That plugin is sooooo amazingly useful and productive, but I always have to go to the default list view to see a list of the pending versions.
https://www.ads-software.com/plugins/wp-nested-pages/
]]>I tried this snippet but it keeps saying “1 of 1” even though I know there are two pages.
<?php echo 'Page '.$page.' of '.$numpages.''; ?>
Any ideas why? For reference, here’s my page code:
<?php // Blog page template
get_header(); ?>
<main id="primary" class="entry-archive" role="main">
<div class="container">
<h1 class="page-title">My blog</h1>
<? // category picker ?>
<div class="clear"></div>
</div> <!-- end .container -->
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?>
<?php echo 'Page '.$page.' of '.$numpages.''; ?>
</main> <!-- end #primary .entry-archive -->
<?php get_footer(); ?>
Also, this is on the home.php page.
Thanks!
]]>