An easy-to-use template tag for showing a breadcrumb menu on your site.
Why was this plugin created?
Many of my theme users had a real need for a functional breadcrumb menu without having to find and test a lot of other plugins. Therefore, I created a breadcrumbs script for those users. Eventually, I decided to package it as a plugin and share it with others.
The plugin is still mostly packaged with themes and is currently being used on millions of WordPress sites.
What’s a breadcrumb menu?
Basically, it’s a navigational tool. On many sites, you’ll see something that looks like this:
You are here: Home > Page > Sub-page > Sub-sub-page
This plugin allows you to easily add this type of menu your site.
How do I add it to my theme?
There are several methods, but in general, you would add the following line of code to your theme. Generally, this goes somewhere near the bottom of your theme’s header.php
template. However, you can add it anywhere you want in your theme, and it should work.
<?php if ( function_exists( 'breadcrumb_trail' ) ) breadcrumb_trail(); ?>
To see all methods and options, refer to the readme.md
file included with the plugin download. You can also view the readme online.
How do I disable the plugin styles?
You can disable the plugin styles by adding this to your theme’s functions.php
file:
add_filter( 'breadcrumb_trail_inline_style', '__return_false' );
Note that the breadcrumbs will be completely unstyled at this point. You’ll need to add style rules to your theme’s style.css
file.
Do breadcrumbs show in Google search results?
Yes, breadcrumbs can show in Google search results. The breadcrumbs are coded in a way that all of the major search engines should be able to recognize them. It is marked up with the appropriate Schema.org properties to make it easier for search engines and other systems to understand.
With that said, it’s still left up to the search provider to actually show the breadcrumbs. Generally, they do show them.
Don’t expect to see breadcrumbs in your search results on the first day either. It may take a bit, depending on how often your Web site is crawled.
What is Schema.org? Microdata?
Microdata is a way to nest metadata into your Web site’s pages. It allows things like search engines and browsers to provide a more useful experience for users. Microdata provides a way for you to describe the “meaning” (i.e., semantics) of specific items on your site by using a standardized vocabulary.
Schema.org is a microdata vocabulary. It is a collaboration by Bing, Google, Yahoo!, and Yandex for creating a set of standardized conventions for using microdata on the Web. With these standards in place, we can make our Web sites’ data more understandable to search engines and browsers while providing a richer experience for users.
Does this help with SEO?
Well, it doesn’t hurt. The way I see it, the more meaningful information you provide to search engines, the more likely you are to rank up. Properly-coded breadcrumbs are just one tool in a gigantic toolbox for building a search-engine optimized site.
The breadcrumbs display the wrong data!
This is rare, especially if you put the code in your header template. However, it can happen on occasion when your theme or another plugin messes with some of WordPress’ global variables but doesn’t set things back properly after doing whatever it is they’re doing.
There’s not really much I can do to correct that within the Breadcrumb Trail plugin. The only thing I could do is help you fix the theme/plugin causing the issue. If this happens, you’ll need to drop by my support forums to get help.