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*
header.php:
&lt;title&gt;&lt;?php echo bloginfo('name'); ?&gt; &lt;?php if (is_home () ) { echo &quot; - &quot;; bloginfo('description'); } elseif (is_single() || is_page() ) { echo &quot; - &quot;; single_post_title(); } elseif (is_search() ) { echo &quot; - &quot;; echo &quot; search results: &quot;; echo wp_specialchars($s); } else { echo &quot; - &quot;; wp_title('',true); }?&gt;&lt;/title&gt;
Try to avoid using extended ascii in *any* SEO attempts when creating titles for your site, post and pages.
– Phil
Discussion ¬