Languages: English • 日本語 Türkçe • (Add your language)
Displays or returns the tag title for the current archive page.
<?php single_tag_title( $prefix, $display ); ?>
<?php single_tag_title(); ?>
Note: The $prefix argument is currently ignored if the $display argument is false.
See http://core.trac.wordpress.org/ticket/16632
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); ?>
single_tag_title() is located in wp-includes/general-template.php
.
Tags: get_tag(), get_tag_link(), get_tags(), get_the_tag_list(), get_the_tags(), is_tag(), the_tags(), single_tag_title(), tag_description(), wp_generate_tag_cloud(), wp_tag_cloud()