Welcome Guest, Not a member yet? Register   Sign In
Tagger: Getting Tags in Meta Title Field
#1

[eluser]Unknown[/eluser]
Howdy folks. We implemented Tagger with our new EE installation in order to add tags to our blog posts, but I would love to get the tag pages to actually show the name of the tag in the meta title field (e.g. "Name of Tag | Name of Site") whenever someone clicks on a tag and gets the list of posts. I'm a bit of a newbie when it comes to this sort of thing, so just plopping {tagger:tag_name} in the template wasn't working for me. Any help would be greatly appreciated.
#2

[eluser]Unknown[/eluser]
We figured it out. But for anyone who's looking to achieve this for SEO-friendliness:

<?php
$tagtitle = "{segment_3}";
$tagtitle = ucwords($tagtitle);
?>

<title><?php if(!empty($tagtitle)){echo $tagtitle . " | ";} ?>NAME OF SITE</title>




Theme © iAndrew 2016 - Forum software by © MyBB