-
-
Save tinotriste/5387124 to your computer and use it in GitHub Desktop.
<!-- start breadcrumbs --> | |
<?php the_breadcrumb(); ?> | |
<!-- end breadcrumbs --> |
Nice basic and easy to understand breadcrumbs thing which helps me to get into the subject.
Edit: Forked and changed to show static blog link on categories/single posts and to display multiple categories (if applicable.
Thanks for the code even if it does not suit all possible situations. But great as a starter for a newbie like me...
it's really working good..
Very very nice! Thank you.
it's really working good..
only need to update the code 52: $post = get_page($page_for_posts_id); to new function $post = get_post($page_for_posts_id);
Really nice script still works like a charm!
Thanks a lot !!
Thanks :)
For those looking for a more thorough implementation please take a look at how to handle breadcrumbs in WordPress. It includes most of what this gist does, but then also includes various missing features for handling custom post types, parent pages and doesn't use any deprecated functions. Definitely recommend.
@mikemike : Do you have a link to look at your improvements ? thanx ;)