Easy tag function for any page.
This plugin adds the function get_page_tags which allows you to get an array of tag objects for any page or post you want.
Usage:
<?php
$tags = get_page_tags($post->ID);
foreach($tags as $tag)
{
echo '<li id="tag-'.$tag->term_id.'"><a href="/'.$tag->slug.'">'.$tag->name.' ('.$tag->count.')</a></li>';
}
?>
The array contains tag objects identical to the tag objects returned by the get_the_tags() Template Function.
Requires: 2.0 or higher
Compatible up to: 2.5
Last Updated: 2008-4-8
Downloads: 959
Got something to say? Need help?