I need help with creating unique title tags for my category pages. This is very helpful with
SEO, so this is rather important I think.
This is what I currently have in my title tag located in my pligg.tpl file:
Code:
<title>{if isset($pretitle)}{$pretitle}{/if}{if $pagename eq "published"}My Home Page Title Here{elseif isset($posttitle)}{$posttitle}{/if}</title>
Using this method allows me to have a different home page title from the story titles -- however, it also uses this title for all the other
CATEGORY pages, which I do not want. I've tried other methods such as this:
Code:
<title>{if isset($pretitle)}{$pretitle}{/if}{if $pagename eq "published"}{if $category eq "Category A"}My Category A Title{elseif $category eq "Category B"}My Category B Title{else}My Home Page Title Here{/if}{else isset($posttitle)}{$posttitle}{/if}</title>
Is there anyone that can help me with this? It just won't work. It's almost like the
$category string is being ignored and isn't recognized. Is there perhaps a different string I could use that would help me define a title for each of my categories? Or perhaps my
{if} statements were written incorrectly? Anyone?? Please....