chrispoole.com

Page View

Wordpress Breadcrumbs

I was trying to find a simple bit of code to implement a breadcrumbs menu with wordpress, and couldn’t find anything. So I wrote the simple piece of code that you can see in action at the top of this page, near the site title. The central bit of code is what I found to be useful from a comment over at php.net; the author did not name himself.

View the script here

To use it, just put that block of code into your Wordpress file where you want the menu to appear.

If you don’t use Wordpress but still want to use this, you may have to change REQUEST_URI at the start of the script to PHP_SELF. And then at the bottom, change wp_title() to be a function that gives the title of the current page.

What It's About

Hey, I'm Chris. I'm an English Theoretical Physics student, but most of this site is to do with web development topics. I like messing about with all sorts of programming languages, and generally hacking things together.
Read more.