I’ve used this plugin for years now without any issue, but now, the menu won’t display pages with childs in the list.
For example, I have a page with 10 child pages, I want to display those 10 child pages in the menu not the first parent page.
I use these parameters :
<?php wp_menu('nav_type=secondary&nav_tag=ul&accesskeys=1&active=link&active_class=current'); ?>
Before the update, the list was displayed, after the update, the list only keep in the child pages with no child pages themselves.
I suppose nobody maintains the code anymore, but someone may have had the same issue and fixed it ?
Thank you
]]>This plugin just saved my ass and I wanted to pass along my heartfelt gratitude and admiration.
]]>Wondering about the secondary navigation with this plugin…
I used this declaration in my sidebar.php file because I want to display a secondary navigation on every page:
<?php
wp_menu(‘nav_type=secondary&heading=h2&div=1’);
?>I was expecting to see an unordered list of child pages with the parent page listed as an <h2> above all wrapped in a nice little <div>.
The problem is that the hrefs for the child links are all missing a backslash before the child page name.
I.E. https://www.website.com/parent-namechild-name
Obviously that isn’t working. Any idea how I can get a backslash between [parent-name] and [child-name]?
I’m experiencing the same issue.
urls look like https://www.mysite.com/categorypage
instead of https://www.mysite.com/category/page
The code i’m using is
<div id="sub-nav-text">
<?php wp_menu('nav_type=secondary&parent_id=' . $post->post_parent . ''); ?>
</div>
]]>