What Tag Page am I on?
-
Clicking a tag in 2.3 will take us to a listing of posts for that tag. When I’m on that listing (I’m using tag.php), how do I discern what tag the listing is for? I’d like to include it in my
<title>
.With UTW, I had something like this in my header.php:
<title> <?php if (is_tag()) { ?> <?php echo 'Articles tagged with: '; ?> <?php UTW_ShowCurrentTagSet('tagsettextonly'); ?> <?php echo ' » '; ?> <?php bloginfo('name'); ?> <?php } else { ?> <?php wp_title(''); ?> <?php if(wp_title('', false)) { echo ' » '; } ?> <?php bloginfo('name'); ?> <?php } ?> </title>
Any thoughts on how to replace that UTW_ShowCurrentTagSet() call?
I guess the same could apply to meta for single pages as well. How to grab these critters out of The_Loop?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘What Tag Page am I on?’ is closed to new replies.