Show Menu on !is_page()
-
Hi Bill,
1st of all: a big thanks for this awesome plugin – verry helpfull !
I use this widget as a 2nd Navigation inside sidebar for all Pages.
so i did a “dirty” workaround on version 1.2 and set $parents[] to 1st Post id to get Navigation, also on !is_page() instead to return empty navigation:
// Only run on pages
if ( !is_page() ) {
$parents = array_reverse( get_ancestors( 57, ‘page’ ) );
$parents[] = 57;I used the id of homepage, and user will have navigation on all pages, posts on site to use. But with this customisation i need to do this again on each update ??
Do you see a possibility to do a workaround into your version to set something like if (!is_page()) use homepage (or selected) as $parents[] or $args?
Thanks for support
- The topic ‘Show Menu on !is_page()’ is closed to new replies.