Last active
March 25, 2025 12:59
-
-
Save tinotriste/5387124 to your computer and use it in GitHub Desktop.
Wordpress: Breadcrumbs function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- start breadcrumbs --> | |
<?php the_breadcrumb(); ?> | |
<!-- end breadcrumbs --> |
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...