WordPress V2.xTemplate Tag Reference Guide as of Version 2.x
Presented by:
Tag Tags
Tag Cloudwp_tag_cloud();
Displays a list of tags in what is called a 'tag cloud', where the size of each tag is determined by how many times that particular tag has been assigned to posts.
<?php wp_tag_cloud(); ?>
smallest
The text size of the tag with the smallest count value (units given by unit parameter).
<?php wp_tag_cloud(); ?>
Integer
largest
The text size of the tag with the highest count value (units given by the unit parameter).
<?php wp_tag_cloud(); ?>
Integer
unit
Unit of measure as pertains to the smallest and largest values. This can be any CSS length value, e.g. pt, px, em, %; default is pt (points).
<?php wp_tag_cloud(); ?>
String
number
The number of actual tags to display in the cloud. (Use '0' to display all tags.)
<?php wp_tag_cloud(); ?>
Integer
format
Format of the cloud display.
<?php wp_tag_cloud(); ?>
flat
list
array
orderby
Order of the tags.
<?php wp_tag_cloud(); ?>
name
count
order
Sort order.
<?php wp_tag_cloud(); ?>
ASC
DESC
RAND
exclude
Comma separated list of tags (term_id) to exclude. For example, 'exclude=5,27' means tags that have the term_id 5 or 27 will NOT be displayed. Defaults to exclude nothing.
<?php wp_tag_cloud(); ?>
String
include
Comma separated list of tags (term_id) to include. For example, 'include=5,27' means tags that have the term_id 5 or 27 will be the only tags displayed. Defaults to include everything.
<?php wp_tag_cloud(); ?>
String
Tag Arrayget_the_tags();
Returns an array of objects, one object for each tag assigned to the post. This tag must be used within The Loop..
<?php get_the_tags(); ?>
term_id
the tag ID
name
the tag name
slug
a slug generated from the tag name
term_group
the group of the tag, if any
taxonomy
should always be 'post_tag' for this case
description
the tag description
count
number of uses of this tag, total
Tag Listget_the_tag_list();
Generates a HTML string of the tags associated with the current post. The name of each tag will be linked to the relevant 'tag' page.
<?php get_the_tag_list(); ?>
No Parameters.
Tag Title for Current Pagesingle_tag_title();
Generates a HTML string of the tags associated with the current post. The name of each tag will be linked to the relevant 'tag' page.
<?php single_tag_title('prefix', 'display'); ?>
prefix
Text to output before the tag title.
<?php single_tag_title('Tag:', 'display'); ?>
string
display
Display the tag's title (TRUE) or return it for use in PHP (FALSE).
<?php single_tag_title('prefix', 'TRUE'); ?>
TRUE
FALSE