Blot

Displaying the number of items

Is there a way to display the number of posts in a tagged article list or the archive? Something like “Archive (182)” and “Tagged ‘news’ (34)”? Thanks!

Asked 5 years ago Edit
2 replies

Yes, you can use the length property on any list of entries. For example:

Archive ({{all_entries.length}})
Tagged ‘news’ ({{entries.length}})

Please let me know if you have any questions about this or anything else

5 years ago Edit

Thanks!

5 years ago Edit

Your reply