Create Breadcrumb from wp_menu
-
Hi,
I’ve experimented with several breadcrumb plug-ins and my own code and my client is not happy. Basically all they want is for each post or page to always display where it would show in the Menu heirarchy–not a true breadcrumb of where the user has been.
So I figured that I could use wp_get_nav_menu_items to somehow get this information, but I can’t work out how to identify:
a) the current post/page (so that the tree knows where to start from) and then
b) how to identify the ‘parent’ of each menu item so that I can iterate back through the arrayIs there already some code or a plug-in that does this? Or can someone give me a hand up to getting started?
TIA,
—JC
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Create Breadcrumb from wp_menu’ is closed to new replies.