Wordpress Reverse Title Plugin

September 3rd, 2005

Of late, I have became a fan of <title> tags that go from specific to general rather than vice versa. For example, I like the page title of:

Wordpress Reverse Title Plugin // Archives // Addicted to New

Alot better than:

Addicted to New // Archives // Wordpress Reverse Title Plugin

As Matt calls it, “A reverse breadcrumb in the title.” The Wordpress default is the latter of the examples above so I wrote a plugin and a bit of code to reverse the title tag. This is not rocket science, but I thought it might help out some beginners.

I was hoping that Wordpress would have a filter or hook of some kind I could tap into to make this automatic, but I couldn’t find one in a few minutes of searching so I gave up. What I came up with is pretty simple despite lacking automation. To reverse your titles simply download the plugin and follow the instructions included in the plugin file. The installation instructions are pretty detailed, but as always if you have any problems just let me know. Also, if anyone knows of a way to automate this a bit more, let me know.

Update 9/13/2005: This plugin has been updated. The original version made titles show up with newline characters. If you are just downloading this, then ignore the message. If you have previously downloaded this plugin and are noticing newline characters and n’s and such in your stat programs, then download the updated version using the link above and reinstall the plugin with the new directions.

9 Responses to “Wordpress Reverse Title Plugin”

  1. [...] Addicted To New has released an interesting plugin that reverses your page title. So instead of your page being, mysite — archives–post, it becomes, post — archives — mysite. The idea being specific to general hierarchy. [...]

  2. avatar TL October 25th, 2006 4:44 pm

    Great plugin… thanks for the work.

  3. Thanks for the plugin. It is easy to use. Just what I was looking for.

  4. 37 5 phentermine cheap…

    grazed Nordhoff afterward spout hoofs …

  5. Hi,

    Thanks for the plugin, I’m using it gladly. I just modified a little bit the code to insert in the header so that it does not get broken if the plugin is deactivated and gets some internationalisation if possible:

    $sep = “«”;
    $title = get_bloginfo(’name’) . ((is_single()) ? ” $sep “.__(”Archives”) : ”) . wp_title($sep, false);
    $title = str_replace(”\n”, ”, $title);
    if (function_exists(’addicted_reverse_title’)) {
    $title = addicted_reverse_title($title, $sep);
    }
    echo $title;

  6. Thanks alot. I have been trying to do this for ages! Will this work with google bots? Will they log the post the same? So it cuts out the normal BLOG NAME - GAT- POST NAME, and replace it in reverse? This is the main reason I want it as google bots just rank it wrong.

  7. [...] Visit [...]

  8. Hey John,

    Thank you so much for the plugin. This is just what I was looking for :)

    See it in action at http://www.oohic.com/blog

    Cheers,
    Austin

Leave a Reply

About This Site

Addicted to New is the personal website of John Nunemaker (Noo-neh-maker), a Web Developer enamored of Ruby on Rails and a wide-eyed fan of all things new and cool.