5-14-2011

WordPress: Get Tag ID using only the Tag Name

Useful when you're on a Tag Template or using the is_tag() conditional outside The Loop, WordPress gives you the single_tag_title() function which returns the Tag Name and you can use this function to find the Tag ID: