Page 1 of 1

Count total number of articles?

Posted: Tue Oct 01, 2019 12:43 pm
by miksmith
Is there a widget we could use in both the admin area and main site to show the total number of articles? For the main site, integrating it in to the archive and categories widgets would be great showing the number of articles in each section

thanks

mike

Re: Count total number of articles?

Posted: Sun Oct 27, 2019 11:45 am
by Arvid
I'm not aware of such a plugin existing - even though it shouldn't be too hard to create. A little coding fun, anyone? :)

Re: Count total number of articles?

Posted: Tue Apr 19, 2022 7:45 pm
by bttr
Hi!
A quite old post, but let me still add something.
  1. I created a similar plugin today as an exercise to better understand how FlatPress works.
  2. The plugin adds as 'Count Entries' to the 'Entries' menu in the admin area.
  3. I didn't make it a widget for visitors, because it iterates through all blog entries every time. This will probably slow down larger FlatPress instances. (I didn't test this.)
  4. In fp-plugins/categories/plugin.categories.php you could change the setting $smarty->assign('categories_showcount', false); to true. But see above!