Is there an easy way of outputting the current pages menu text?
I am looking for something like
<?php echo get_the_title(); ?>
But for the current pages menu text.
|
|
You can get a Menu's entire item list with wp_get_nav_menu_items(). Then, loop through them all and test against the current post_id, and voila, you have all your data.
|
|||||||||||
|