-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathREADME.txt
60 lines (42 loc) · 2.05 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
=== Menu Breadcrumb ===
Contributors: jchristopher
Donate link: https://mondaybynoon.com/donate/
Tags: menu, breadcrumb, breadcrumbs, nav, navigation, menus
Requires at least: 4.0
Tested up to: 4.0
Stable tag: 1.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Generate a breadcrumb trail from a WordPress Menu
== Description ==
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!](https://github.com/jchristopher/menu-breadcrumb)
== Installation ==
1. Download `menu-breadcrumb.zip` and extract
1. Upload the `menu-breadcrumb` folder to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Place `<?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](https://github.com/jchristopher/menu-breadcrumb)
= Can I contribute? =
Of course! [https://github.com/jchristopher/menu-breadcrumb](https://github.com/jchristopher/menu-breadcrumb)
== Changelog ==
= 1.0.2 =
* Added a `menu_breadcrumb_level` property to each breadcrumb object
= 1.0.1 =
* Fixed an issue where the Menu wasn't properly retrieved from the location
= 1.0.0 =
* Initial release