Moving WordPress Title & Symbols 

The standard WordPress handling of title tags [what shows up in your browser's title bar and search engines] is not guite right.

Instead of BlogTitle >> PostTitle; you want PostTitle >> BlogTitle. This helps with SEO and looks better.

You could switch wp_title and bloginfo(name), but then you get this annoying >> before your title. So here is the easy solution without resorting to a plugin.

Add the PostTitle after the tag with ” in the brackets to remove the arrows: </p> <pre class="brush: php;"><title><?php wp_title(' '); ?></pre> <p>Add the condition if we’ve removed that symbol, it should add another after it; in this case i’m choosing the | symbol because I don’t like the arrows:</p> <pre class="brush: php;"><?php if(wp_title('', false)) { echo ' | '; } ?></pre> <p>Now add your blog name and whatever else you want before closing the title tag:</p> <pre class="brush: php;"><?php bloginfo('name'); ?> | blog description? </title> </pre> <p>Works like a charm. Thanks to <a href="http://www.zachgraeve.com/2006/09/01/optimizing-wordpress-title-tags/">Zach</a>.</p></div> </div> <div class="bottom_of_entry"> </div> <div style="display:none"> <div id="respond" style="display:none"> <h3> Reply <small id="cancel-comment-reply"> <a rel="nofollow" id="cancel-comment-reply-link" href="/tag/wordpress/#respond" style="display:none;">Click here to cancel reply.</a> </small> </h3> <form id="commentform" action="http://craigchilds.wordpress.com/wp-comments-post.php" method="post"> <div class="form"> <textarea id="comment" class="expand50-100" name="comment" cols ="45" rows="3"></textarea> </div> <label class="post-error" for="comment" id="commenttext_error"></label> <table> <tr> <td> <label for="author">Name <em>(required)</em></label> <div class="form"><input id="author" name="author" type="text" value="" /></div> </td> <td> <label for="email">Email <em>(required)</em></label> <div class="form"><input id="email" name="email" type="text" value="" /></div> </td> <td class="last-child"> <label for="url">Web Site</label> <div class="form"><input id="url" name="url" type="text" value="" /></div> </td> </tr> </table> <input type="hidden" name="genseq" value="1260588324" /> <p> <input type="checkbox" name="subscribe" id="subscribe" value="subscribe" style="width: auto;" tabindex="6"/> <label class="subscribe-label" id="subscribe-label" for="subscribe">Notify me of follow-up comments via email.</label> </p> <div> <input id="comment-submit" name="submit" type="submit" value="Reply" /> <input type='hidden' name='comment_post_ID' value='119' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' />   <span class="progress"> <img src="http://craigchilds.wordpress.com/wp-content/themes/pub/p2/i/indicator.gif" alt="Loading..." title='Loading...' /> </span> </div> </form> </div> </div> </li> <li id="prologue-110" class="post-110 post hentry category-web tag-feedburner tag-feeds tag-wordpress 142003"> <a href="http://craigchilds.wordpress.com/author/craigchilds/" title="Posts by craigchilds"><img alt='' src='http://0.gravatar.com/avatar/af8052a5742ff594456ff7300ffc8c30?s=48&d=identicon&r=G' class='avatar avatar-48' height='48' width='48' /></a> <h4> <a href="http://craigchilds.wordpress.com/author/craigchilds/" title="Posts by craigchilds">craigchilds</a> <span class="meta"> <abbr title="2007-11-13T03:36:42Z">1:36 pm <em>on</em> November 13, 2007</abbr> <span class="actions"> <a href="http://craigchilds.wordpress.com/2007/11/13/full-feeds-with-the-more-link/" class="thepermalink">Permalink</a> | <a rel='nofollow' class='comment-reply-link' href='http://craigchilds.wordpress.com/2007/11/13/full-feeds-with-the-more-link/#respond' onclick='return addComment.moveForm("prologue-110", "0", "respond", "110")'>Reply</a> </span> <span class="tags"> <br />Tags: feedburner, <a href="http://craigchilds.wordpress.com/tag/feeds/" rel="tag">feeds (2)</a>, wordpress    </span> </span> </h4> <div class="postcontent" id="content-110"> <h2><a href="http://craigchilds.wordpress.com/2007/11/13/full-feeds-with-the-more-link/">Full Feeds With the More Link </a></h2> <div class='snap_preview'><p>What a hassle! WordPress decided a while ago that you can have either summary or full content feeds, but if you used the <code></code> code the feed’s posts would get cut. </p> <p>Editing the wp/includes feed files didn’t help and neither did the full-feed plugin. However, I’d suggest using <a href="http://www.scratch99.com/wordpress-plugin-dualfeeds/">Cronin’s Dual Feeds plugin</a>.</p> <p>Not only does it fix this little issue across the board [category feeds etc] but it also allows you to make up a secondary feed for summaries and plug your feed into <a href="http://feedburner.com">Feedburner</a>. </p> <p>Good look.</p></div> </div> <div class="bottom_of_entry"> </div> </li> <li id="prologue-106" class="post-106 post hentry category-web tag-error tag-wordpress 142003"> <a href="http://craigchilds.wordpress.com/author/craigchilds/" title="Posts by craigchilds"><img alt='' src='http://0.gravatar.com/avatar/af8052a5742ff594456ff7300ffc8c30?s=48&d=identicon&r=G' class='avatar avatar-48' height='48' width='48' /></a> <h4> <a href="http://craigchilds.wordpress.com/author/craigchilds/" title="Posts by craigchilds">craigchilds</a> <span class="meta"> <abbr title="2007-11-13T01:27:19Z">11:27 am <em>on</em> November 13, 2007</abbr> <span class="actions"> <a href="http://craigchilds.wordpress.com/2007/11/13/server-maintenance/" class="thepermalink">Permalink</a> | <a rel='nofollow' class='comment-reply-link' href='http://craigchilds.wordpress.com/2007/11/13/server-maintenance/#respond' onclick='return addComment.moveForm("prologue-106", "0", "respond", "106")'>Reply</a> </span> <span class="tags"> <br />Tags: error, wordpress    </span> </span> </h4> <div class="postcontent" id="content-106"> <h2><a href="http://craigchilds.wordpress.com/2007/11/13/server-maintenance/">Server Maintenance </a></h2> <div class='snap_preview'><p>What is this about? WordPress.com isn’t allowing comments to go through based on ‘my’ server maintenance?</p> <blockquote><p>Your server is going through a few minutes of routine maintenance. Please don’t touch your browser for a few minutes.<br /> What do I do?</p> <li>If you were posting a comment or making a post on your blog then do not press BACK on your browser. Wait 5 minutes and press the refresh icon on your browser. Your comment or post will be sent as normal.</li> <li> If you are browsing a blog here just wait a few moments and hit refresh. The page you were expecting will appear.</li> </blockquote> <p>I’ve never come across this before. When will it end!?</p></div> </div> <div class="bottom_of_entry"> </div> </li> </ul> <div class="navigation"> <p></p> </div> </div> <!-- main --> </div> <!-- sleeve --> <div class="clear"></div> </div> <!-- // wrapper --> <div id="footer"> <p> <a href="http://wordpress.com/">Blog at WordPress.com.</a> P2 theme by <a href="http://automattic.com/">Automattic</a>. </p> </div> <div id="notify"></div> <div id="help"> <dl class="directions"> <dt>c</dt><dd>compose new post</dd> <dt>j</dt><dd>next post/next comment</dd> <dt>k</dt> <dd>previous post/previous comment</dd> <dt>r</dt> <dd>reply</dd> <dt>e</dt> <dd>edit</dd> <dt>o</dt> <dd>show/hide comments</dd> <dt>t</dt> <dd>go to top</dd> <dt>l</dt> <dd>go to login</dd> <dt>h</dt> <dd>show/hide help</dd> <dt>esc</dt> <dd>cancel</dd> </dl> </div> <script type='text/javascript'> /* <![CDATA[ */ var thickboxL10n = { next: "Next >", prev: "< Prev", image: "Image", of: "of", close: "Close" }; try{convertEntities(thickboxL10n);}catch(e){}; /* ]]> */ </script> <script type='text/javascript' src='http://s2.wordpress.com/wp-includes/js/thickbox/thickbox.js?ver=3.1-20091124'></script> <script type='text/javascript' src='http://s3.wordpress.com/wp-includes/js/jquery/jquery.color.js?ver=2.0-4561m'></script> <script type="text/javascript" src="http://wordpresscom.skimlinks.com/api/wordpress.js"></script> <script type="text/javascript"> var skimlinks_pub_id = "725X1342"; var skimlinks_sitename = "craigchilds.wordpress.com"; var skimlinks_domain = "go2.wordpress.com"; skimlinks(); </script><script type="text/javascript" src="//secure.quantserve.com/quant.js"></script> <script type="text/javascript">_qoptions = { labels:"adt.0,language.en" };_qacct="p-18-mFEk4J448M";quantserve();</script> <noscript><p><img src="//secure.quantserve.com/pixel/p-18-mFEk4J448M.gif?labels=adt.0%2Clanguage.en" style="display: none" height="1" width="1" alt="" /></p></noscript> <script type="text/javascript"> jQuery(document).ready( function() { jQuery("#togglecomments").click( function(){ jQuery('.discussion').toggle(); jQuery('.commentlist').toggle(); return false; }); }); </script><script type='text/javascript' src='http://s2.wordpress.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shCore.js?m=1258143671g'></script> <script type='text/javascript' src='http://s1.wordpress.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushPhp.js?m=1260182860g'></script> <script type='text/javascript'> (function(){ var corecss = document.createElement('link'); var themecss = document.createElement('link'); var themecssurl = "http://s2.wordpress.com/wp-content/plugins/syntaxhighlighter-wpcom/shThemeDefault.css?m=1258244991g"; if ( themecss.setAttribute ) { themecss.setAttribute( "rel", "stylesheet" ); themecss.setAttribute( "type", "text/css" ); themecss.setAttribute( "href", themecssurl ); } else { themecss.rel = "stylesheet"; themecss.href = themecssurl; } document.getElementsByTagName("head")[0].appendChild(themecss); })(); SyntaxHighlighter.config.clipboardSwf = 'http://s3.wordpress.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf'; SyntaxHighlighter.config.strings.expandSource = 'show source'; SyntaxHighlighter.config.strings.viewSource = 'view source'; SyntaxHighlighter.config.strings.copyToClipboard = 'copy to clipboard'; SyntaxHighlighter.config.strings.copyToClipboardConfirmation = 'The code is in your clipboard now'; SyntaxHighlighter.config.strings.print = 'print'; SyntaxHighlighter.config.strings.help = '?'; SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n'; SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: '; SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: '; SyntaxHighlighter.all(); </script> <script src="http://s.stats.wordpress.com/w.js?19" type="text/javascript"></script> <script type="text/javascript"> st_go({'blog':'142563','v':'wpcom','user_id':'0','post':'0','subd':'craigchilds'}); ex_go({'crypt':'RDZ8LFkxbXFNJkYwcERvJS9YSWRNaV1YTy96LnNbZHFldVhqM1QmTGY4bGU0NlQmVHFIP3pHQjl2UnlTLkNHLTRhcUF8c0JXU0Jyc3hVbnRTLTJrLyxVRTlRbHJGWW5YWEppMUZzZzZWWDE/alJ1WUp5NnNDYXdSOEkwRUh+OHx3aGcxbEdMbj9qaStheXpNRXR6eTRwWCtZMUFBSlN3dHRWUHRlLGow'}); addLoadEvent(function(){linktracker_init('142563',0);}); </script> </body> </html>