Page 1 of 1

How can I add breadcrumb to my Wordpress theme?

Posted: Sat Apr 11, 2015 1:49 am
by bintje
I bought a wordpress theme from themeforest, it's called Quezal, and I have managed to build the website in the last few months. But now I'm having trouble implementing the breadcrumb. I googled a lot and found out I have to add some PHP code into the header template, but I don't know PHP at all.

Can anyone tell me how to do it right? My website is http://www.skyhallfence.com/

Thank you guys.

Re: How can I add breadcrumb to my Wordpress theme?

Posted: Sat Apr 11, 2015 8:07 am
by Celauran
get_post_ancestors will get you an array of posts, which you can then iterate over to build up the crumb trail.