WordPress custom breadcrumbs without plugin

Breadcrumbs are the important part of our website, in wordpress there are several plugins are available for this, but below i posted the code for custom breadcrumbs for our wordpress site. Just add this below code in to your current wordpress theme functions.php and call the second step.

Step 1

Step 2

After adding the code into functions.php add the below code to where you want to use this function.

About the author:

I'm a web developer / PHP programmer. I am also working on custom plugin development of wordpress.

22 Responses

  1. berez1984bz says:

    Big thanks to you!

  2. gdisalvo says:

    thanks. I am using it. Is there a way to reverse it and stack the crumbs starting on the left and build out to the right? last-page << third-page << second-page << Home-page
    Incase I wanted to push this into a left hand corner as my right contains date and time stamps?

  3. Unity says:

    Thanx, this helped me alot!

  4. Michiel says:

    This is a good solution, but you could have added more elaborations on the code. Secondly, you might consider adding microdata for the breadcrumbs, so the breadcrumbs will also appear in google search results.

  5. Sky A. says:

    Very Helpful. Thanks

  6. MicheleBG says:

    Very cool, it works with WP 3.6. I was wondering how to make it responsive. With max-width:767px do not display breadcrumbs. Via CSS it does not work.

  7. bboywattsy says:

    Works with custom posts.. yay!

  8. Salih Kulangara says:

    Coool…Works Fine, but I want something more, I have custom post type and taxonomies, and how to work with this, In CPT single page I am getting home>Post Type>single post name, I want to show up the taxonomy term also… Like I have this, a Post type Publications, and taxonomy publication_type, and in publication_type terms like article, Poems etc, So I select a post from article, in single page i want to get Home>Publications>Poems>post title…. Is it possible???? Tanx in advance .

    Any How your work is cool, and so helpful. :)

  9. tholhath says:

    Thank u

  10. PaVen Nguyen says:

    ok . done task thank for share :D

  11. D says:

    I got errors on WP 3.8.1 (“headers blah-blah” when I try to edit a post with activated breadrumbs from the template)

  12. ilenelfuerte says:

    thanks, it served me very helpful

  13. sam says:

    not working on a blog page..

  14. Pratik says:

    wow very nice code thnx for help

  15. ejaz says:

    thanks alot it’s very helpful.

  16. তপু says:

    Thank you very much. such a wonderful tricks. Its really works for me.

  17. moustapha says:

    w el nby enta prince

  18. sname says:

    good job… worked perfectly for me

  19. Remus Adrian says:

    Great job! But i have a question, my blog page is set on home.php, and with this breadcrumb it doesn’t show the blog title nor the blog title before a category. it’s like: Home >> Category >> Post, i want to show like: Home >> Blog >> Category >> Post… how can i do that? Thank you!

  20. Renish khunt says:

    Great dear

Leave a Reply

Back to Top