If you set the page’s title to be the same as your menu item name, for example:
Page title: “Parent 1”
Menu item name: “Parent 1”
You can use this code:
<?php echo get_the_title(); ?>
Reference: http://codex.wordpress.org/Function_Reference/get_the_title
Hi thanks for reply..
But the above code display the post title only.
But i need the menu title name as i explained above.
I am asking for Page template not the page..
If anybody know please reply.
Anyway thank u … thanks a lot.
Any news on this? I’m looking for the same thing.
Thanks