Codex tools: Log in / create account
Contents |
Displays or returns the tag title for the current page.
<?php single_tag_title('prefix', 'display'); ?>
This example displays the text "Currently browsing " followed by the tag title.
<p><?php single_tag_title('Currently browsing '); ?>.</p>
This example assigns the current tag title to the variable $current_tag for use in PHP.
<?php $current_tag = single_tag_title("", false); ?>
the_tags, get_the_tags, get_the_tag_list, single_tag_title, is_tag, get_tag_link, wp_tag_cloud, wp_generate_tag_cloud,