WordPress tutorials: Display tag name

Wpsnipp – Returns an array of objects, one object for each tag assigned to the post. Adding this PHP code to your wordpress theme will display the tag name for the tag page.This function does not display anything; you should access the objects and then echo or otherwise use the desired member variables.

 

 

 

<?php
single_tag_title();
?>

Leave a comment