Count total number of articles?

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
miksmith
Posts: 19
Joined: Wed Jul 31, 2019 4:32 pm

Count total number of articles?

Post by miksmith » Tue Oct 01, 2019 12:43 pm

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

User avatar
Arvid
FlatPress Coder
Posts: 558
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Count total number of articles?

Post by Arvid » Sun Oct 27, 2019 11:45 am

I'm not aware of such a plugin existing - even though it shouldn't be too hard to create. A little coding fun, anyone? :)

bttr
Posts: 47
Joined: Tue Mar 22, 2022 9:20 pm
Location: Berlin, Germany
Contact:

Re: Count total number of articles?

Post by bttr » Tue Apr 19, 2022 7:45 pm

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!

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests