Moses08
Member
Posted 2 years ago #
Hey all,
I have Ultimate Tag Warrior installed on my blog. I want to add page title to the tag pages. For example, when you click a tag and go to a tag page ( www.whatever.com/tag/tag-name ) I want to name the page 'Tag Name - Whatever'. Any ideas on how this can be accomplished?
Moses08
Member
Posted 2 years ago #
Ok, so I got to playing around with that a bit since I didn't want quite the same style as that author. I ended up with this. Kludgy, but seems to work (apologies for all my lovely indenting being lost):
<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>
Moses08
Member
Posted 2 years ago #
My theme's header.php. Most themes have one that's typically where you'll find the <title> tag.
@Handsolo
it's possible to add reload excerpt code in tag .
i dont want to show full post in tag
Sorry cross posting
Moses08
Member
Posted 2 years ago #
Thanks a lot HandySolo. Works perfectly after I modified to fit the format I wanted. This is a key fix for SEOing UTW.
@xinfo - huh?
@moses08 - Glad to help!
rkblake
Member
Posted 2 years ago #
You really are Han Solo...works perfectly...even SEO'd the titles of the "non" UTW tag pages.
Wow!