#StackBounty: #php #wordpress How to get current page menu item ancestor name wordpress

Bounty: 50

I would like to know how to retrieve as variable the name of the current page.
For exemple, My menu is like :

Item 1
Item 2 => sub-item 1

Item 1 & 2 are custom links. sub-item1 is my page.

When I’m on this page, I want to retrieve “Item 2” name (to build my custom breadcumbs)

Thanks


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.