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
from How to get current page menu item ancestor name wordpress
No comments:
Post a Comment