Menu Breadcrumb
Breadcrumbs are often generated from Page structure, but in a world of Custom Post Types that doesn’t always work. Menu Breadcrumb uses your WordPress Menu to generate a breadcrumb trail based on the current page. View on GitHub!
About this tool.
Breadcrumbs are often generated from Page structure, but in a world of Custom Post Types that doesn’t always work. Menu Breadcrumb uses your WordPress Menu to generate a breadcrumb trail based on the current page.
View on GitHub!
Getting started.
- 01Download menu-breadcrumb.zip and extract
- 02Upload the menu-breadcrumb folder to the /wp-content/plugins/ directory
- 03Activate the plugin through the ‘Plugins’ menu in WordPress
- 04Place <?php if ( function_exists( 'menu_breadcrumb') ) { menu_breadcrumb( 'my-menu-id' ); } ?> in your templates where you want the breadcrumb to appear
Frequently asked questions.
How do I output a breadcrumb trail?
Add the following to your theme template where you would like to output the breadcrumb:
<?php if ( function_exists( 'menu_breadcrumb') ) { menu_breadcrumb( 'main', // Menu Location to use for breadcrumb ' » ', // separator between each breadcrumb '<p class="menu-breadcrumb">', // output before the breadcrumb '</p>' // output after the breadcrumb ); } ?> More documentation?
Of course! https://github.com/jchristopher/menu-breadcrumb
Can I contribute?
Of course! https://github.com/jchristopher/menu-breadcrumb