Improved WordPress Breadcrumbs

I love how open source works. I released an early version of my breadcrumbs plugin, and I got some great feedback from all of you here on the blog and in the blogosphere!

For instance, Damon Gudaitis of Life With Beer asked if I could build in support for category parents. I didn't think about that since I don't nest categories on this blog, but it's actually a must have I think. So I built it in.

Then I came across this post on Hack WordPress, which urged theme designers to include the breadcrumbs in to their themes. Now I'm good friends with the very good premium theme designers at Woothemes, and they'd probably love to include it, but they'd either have to pay me, or I'd have to release the plugin under another license, so they can easily ship it. So, this new version is released under a BSD license instead of a GPL one.

Another issue for theme designers was that though you could include the breadcrumb conditionally, doing this:

<?php if ( function_exists('yoast_breadcrumb') ) {
	yoast_breadcrumb();
} ?>

You'd still have to put something around it like <p id="breadcrumbs"> breadcrumb </p>, so you cannot add the code and leave it up to the user to activate the plugin or not. So I've modified it, and you can now do this:

<?php if ( function_exists('yoast_breadcrumb') ) {
	yoast_breadcrumb('<p id="breadcrumbs">','</p>');
} ?>

That way, you can easily include it in your themes, and leave it up to the user to enable the plugin or not. I've updated the documentation on the plugin page to reflect that.

So, if you're using it, download the latest version and upgrade: Yoast WordPress Breadcrumbs!

Related posts

  1. Breadcrumbs in WordPress
  2. WordPress: Noindex specific posts and pages!
  3. WordPress subpages going supplemental: the fix
  4. More WordPress SEO: robots-meta update
  5. Google Analytics plugin updated!

Want more WordPress tips?

You should subscribe to my WordPress Newsletter, as you'll get a whole lot more WordPress tips and tricks there! Also, subscribe to this blog right now with RSS, or daily or weekly emails!

6 Comments to “Improved WordPress Breadcrumbs”

  1. Avaz Ibragimov

    Avaz Ibragimov Aug 22nd, 2008 at 17:02

    you haven't fixed the separator input issue(e.g.: → instead of »), have you?

  2. Damon Gudaitis

    Damon Gudaitis Aug 22nd, 2008 at 20:52

    Just updated the breadcrumbs plugin...looks great.

    Thanks for listening.

    Damon

  3. q5webdesign

    q5webdesign Aug 25th, 2008 at 16:03

    Als ik binnenkort een breadcrumb ga installeren, wordt het zeker deze! Ziet er goed uit. Nu heeft onze blog nog geen breamcrumb, maar zeker voor in de toekomst. Bedankt!

  4. Marc

    Marc Aug 29th, 2008 at 19:12

    A nice plugin, thanks. It's would be great to be able to easily format the output. To be able to display a "vertical breadcrumb" in the sidebar for instance, with tags instead of separator (or at least ).

  5. TheWebpreneur.ca

    TheWebpreneur.ca Aug 30th, 2008 at 03:25

    Finally, a breadcrumbs plugin that actually works on my theme! Thanks for a great plugin Joost!

  6. James Morell

    James Morell Nov 19th, 2008 at 23:44

    Another great plugin Joost, and I've finally got it working in Thesis 1.3.2, but for one thing - as my blog is installed on a subdirectory of my site, the breadcrumb "home" link points to the subdirectory, rather than the actual homepage, and I don't want to 301 the subdirectory to the homepage, as it may become a page at some point in the future. Any ideas?!

Leave a Reply

Joost de Valk a.k.a. Yoast Want an avatar too?
Go to gravatar.com and upload your preferred avatar.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

1 Trackbacks and Pingbacks

  1. Recent Links Tagged With "gpl" - JabberTags
Directory Journal
BLVD Status
SearchEngineWatch
SEO Book Tools
Free Google Traffic
Pepperjam
Hosting by:
Hosted by MediaTemple Grid Services