Functions/recent tags

The recent_tags helper returns an array of recent tags.

Usage

<?php recent_tags($limit = 30); ?>

Arguments

  • limit - (integer) The number of tags you want to return. Default value is 30.

Examples

The following example could be used anywhere to create a tag cloud of the 20 most recent tags. It uses the tag_cloud function to parse an array of recent tags for display:

<?php 
$tags = recent_tags(20);
echo tag_cloud($tags,uri('items/browse')); 
?>