single_tag_title
TAG TAGS
What It Does
Displays the title of the tag for the current page.
Code
<?php single_tag_title(‘before’, ‘display’); ?>
Before
Allows you to specify what text to show before the tag title.
Display
Allows you to specify whether the tag title will be displayed or whether it will simply be gathered for use in PHP.
- True – Display the tag title (default usage)
- False – Do not display the tag title
Example
<?php single_tag_title(‘Viewing all posts under: ‘); ?>
The above example would display something like:
Viewing all posts under: News




