(2014-02-08, 00:55:59)shawn_a Wrote: I imagine this is useless without a multi level plugin ?Yes, as I explained I use it with Child Menu. May be of use with the Nested Menu plugin aswell, I guess.
I mean what would it provide for a parent in a a flat 1 d menu ?
(2014-02-08, 01:20:07)Carlos Wrote: I use this in my templates to highlight the current page or parent in the (1-level) menu.Thanks for the hint! That's similar to the way I wanted to accomplish it beforehand.
PHP Code:<?php get_navigation(get_parent(false)==''?return_page_slug():get_parent(false)); ?>
But I prefered to incorporate the functionality into a modular plugin, that is independend of the theme used, so it can be reused and easily installed by folks, who do not want to tinker with code at all.
@shawn_a: is there any way to call the get_navigation function without echoing? This way one could benefit from the cleaner looking code of Carlos' example, but still retain the advantages of a modular solution, like mine.