• 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 array

    Is 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)
  • Thread Starter suntower

    (@suntower)

    Just to be clear: the issue with the breadcrumb plugs I’ve tried is that they all use a -Category- or a Page -Parent- to determine the trail. That is -not- what my client wants. They really just want the breadcrumb to mirror the main menu.

    Thread Starter suntower

    (@suntower)

    Anyone?

    Thread Starter suntower

    (@suntower)

    Help? Don’t mean to sound rude, but what does a guy gotta do to get a reply?

    Surely -someone- has done this. In the WP menuing, it keeps track of where you are relative to the home page, so I was hoping to be able to glean something from the various nav_menu functions, but I can’t figure out how to keep track of which -level- the post or page is on.

    Ideas?

    THANKS!

    —JC

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create Breadcrumb from wp_menu’ is closed to new replies.