correcion a blank menu
$items = wp_get_nav_menu_items($slug);
if (is_array($items)) {
$menuhtml = '<ul class="menu">';
$menui = 0;
foreach ($items as $menuitem) {
$class = '';
$submenu = '';
if ($menuitem->object_id == $post->ID) {
$class = "current";
} else if ($menuitem->object_id == $post->post_parent) {
$class = "current";
}
if(0==$menui){
$class .= ' first';
}
if($menuitem->menu_item_parent){
$class .= ' submenu';
}
if(""!=$class){
$class = 'class="'.$class.'"';
}
$menuhtml .= '<li '.$class.'><a href="' . $menuitem->url . '">' . $menuitem->title . '</a></li>';
if(''!=$submenu){
$menuhtml .= '<li>'.$submenu.'</li>';
}
$menui++;
}
$menuhtml .= '</ul>';
}
echo $menuhtml;
}
edit the file page_navmenu.php plugins folder
Note: run wordpress 3.7.1 ??
https://www.ads-software.com/plugins/page-navigation-menu/
Hi,
I have a static home page that I named “Home” I can’t seem to get it to not show up in your menu. Great plug-in, btw!
Megan
https://www.ads-software.com/extend/plugins/page-navigation-menu/
]]>I’m getting the following error on a site I’m helping to develop:
Warning: Invalid argument supplied for foreach() in ../page_navmenu.php on line 24.
The plugin actually works on the top nav page using the menu I’ve assigned to the Page Navigation Menu plugin but not on sub pages. I’ve tried replacing that php file with a fresh downloaded one but it hasn’t helped.
The site is https://s134821.gridserver.com/about/history/
Thanks.
https://www.ads-software.com/extend/plugins/page-navigation-menu/
]]>I can select the menu from the page editor but after I update and view the page, the default menu displays.
How do I get it to display the Page Menu on the page?
https://www.ads-software.com/extend/plugins/page-navigation-menu/
]]>