jchristopher / menu-breadcrumb

[WordPress Plugin] Generate a breadcrumb trail from a WordPress Menu
GNU General Public License v2.0
20 stars 9 forks source link

Duplicate Menu Locations #7

Closed joshuadavidnelson closed 8 years ago

joshuadavidnelson commented 8 years ago

Currently the plugin pulls the first menu location of the page. However, if the page is located in two parts on the menu, it would be awesome to have a per-page option to select which breadcrumb should be displayed.

Totally realize this is a bit of an edge case. I'm more curious if there's any interest in adding this feature, because I might end up building it for a project.

joshuadavidnelson commented 8 years ago

Something like this gist for the get_current_menu_item_object function, perhaps. I placed it there for speed, but I'll test and issue a PR once I'm able.

joshuadavidnelson commented 8 years ago

I ended up using a custom text field for customizing the breadcrumbs on this project, so never got around to this filter.