Title: Create Breadcrumb from wp_menu
Last modified: August 20, 2016

---

# Create Breadcrumb from wp_menu

 *  [suntower](https://wordpress.org/support/users/suntower/)
 * (@suntower)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/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 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](https://wordpress.org/support/users/suntower/)
 * (@suntower)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/create-breadcrumb-from-wp_menu/#post-2270151)
 * 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](https://wordpress.org/support/users/suntower/)
 * (@suntower)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/create-breadcrumb-from-wp_menu/#post-2270431)
 * Anyone?
 *  Thread Starter [suntower](https://wordpress.org/support/users/suntower/)
 * (@suntower)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/create-breadcrumb-from-wp_menu/#post-2270522)
 * 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.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 1 participant
 * Last reply from: [suntower](https://wordpress.org/support/users/suntower/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/create-breadcrumb-from-wp_menu/#post-2270522)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
