Log in Sign up

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!


3 years ago, 2 replies   Edit question

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

Answered 3 years ago · Edit answer

Thanks!

Answered 3 years ago · Edit answer