post → getTerms
Returns the terms associated with the post.
Description
mixed getTerms([$tax = 'post_tag', $separator = ' ', $template = '<a href="%url%" rel="tag" title="%title%">%name%</a>'])
- $tax
- Term taxonomy
- $separator
- Item separator, only valid if the
$template
argument is not set to be empty. - $template
- Item template; if an empty value is given, the method will return an array with terms as objects
Examples
// return the current post's categories as links atom()->post->Terms('category', ', ');
Last revision 12 years