Functions/total items in collection

The total_items_in_collection function will return the total number of items in the current collection.

Usage

<?php total_items_in_collection(); ?>

Arguments

None.

Examples

The following example, used on the collections/show.php template in your public theme, will echo 'Total Items:' followed by the total number of items in the collection shown.

<?php echo 'Total Items:'. total_items_in_collection(); ?>