Languages: English • 日本語 (Add your language)
Displays or returns the term title for the current page.
<?php single_term_title( $prefix, $display ); ?>
<?php single_term_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 term title.
<p><?php single_term_title('Currently browsing '); ?>.</p>
This example assigns the current term title to the variable $current_term for use in PHP.
<?php $current_term = single_term_title("", false); ?>
single_term_title() is located in wp-includes/general-template.php
.