Page Title Inversion

After reading Alex’s entry about page titles, I’ve flipped the wp_title() and the bloginfo() callouts on my single-entry template. The title will now appear first. On this entry, it will be: Page Title Inversion @ The Indiana Jones School of Management. I think that works better.

Note that wp_title() has a default separator of » that will trip you up if you don’t know it’s there, and the separator shows up before the post title. [Not good, I say!] If you put make it wp_title(”), though, you won’t have a separator at all. You’ll need to hardcode a separator between wp_title() and bloginfo(), though.

Posted October 28th, 2005 in Site Announcements, WordPress.

5 comments:

  1. Geof’s Relentless Kvetching About WordPress » wp_title and Pinging the Codex:

    [...] It would be sweet to have the WordPress CodEx pingable. When I was writing up my entry on inverting page titles, I was wanting to be able to TrackBack that entry so that people could see how I was manipulating wp_title() to suit my real-world needs. Using a TB in this case would allow me to contribute to the CodEx with a real-world example without me actually having to mess with a wiki. Don’t make me do more work, and I’ll contribute more! [...]

  2. Alex:

    That separator is used for dates and such too - look at your date archives. I think a replacement function for wp_title() is in order.

  3. Geof F. Morris:

    Mmmmmm. I don’t really look at my date archives, but I should. [Actually, I need to develop a template for them.] Thanks for pointing that out, Alex … I agree, wp_title() needs some work.

  4. The Indiana Jones School of Management:

    More Page Title Inversion

    I just inverted the page titles for GFMorris.com, GFMorris.org, and Imperfect Mirror as I have here. I can’t believe that I didn’t invert them when I did the ones here…

  5. Page Title Inversion :: canspice.org:

    [...] Geof, I’ve inverted my page titles. previous entry next [...]

Leave a response:

Note: This post is over 3 years old. You may want to check later in this blog to see if there is new information relevant to your comment.