Get current menu title and description as page title?
-
On my theme i have one menu in header position. and menu is registered as “top_menu”. I have searched over the internet but no luck, is it possible to get title and description from menu as a page title.
For example on my menu i have links like
Home – About – Services – Contact – Portfolio
And each menu link have it’s own description. Titles and descriptions are set in admin menu management. And i want them to represent page title and description instead of classic the_title() function.
So if i click on
About
my page title would be
About
What we do!If i click on
Portfolio
My page title to be
Portfolio
Our work of magic!Is it possible to have something like this ?
- The topic ‘Get current menu title and description as page title?’ is closed to new replies.