In Comicpress and other wordpress themes i’ve noticed that there are multiple different ways that the <title> code can be outputted to the users browsers.   Several of them .. *including* mine have bloginfo(‘name’); showing up in the code but [not] being echo’d out to the title line which is causing some strange behavior.

After spending 1/2 hour debugging the one for comicpress advanced I found a good set of code that is working like I want it. *so far*


&amp;lt;title&amp;gt;&amp;lt;?php echo bloginfo('name'); ?&amp;gt; &amp;lt;?php if (is_home () ) { echo &amp;quot; - &amp;quot;; bloginfo('description');
} elseif (is_single() || is_page() ) { echo &amp;quot; - &amp;quot;; single_post_title();
} elseif (is_search() ) { echo &amp;quot; - &amp;quot;; echo &amp;quot; search results: &amp;quot;; echo wp_specialchars($s);
} else { echo &amp;quot; - &amp;quot;; wp_title('',true); }?&amp;gt;&amp;lt;/title&amp;gt;

Try to avoid using extended ascii in *any* SEO attempts when creating titles for your site, post and pages.

– Phil