Most wp_nav_menu parameters ignored
I'm trying to get a text-based navigation menu for the footer of my site. I'm using the wp_nav_menu()
parameters as directed by Codex. He're a snippet of code (in footer.php
):
div id="footer"
?php wp_nav_menu(array('depth'=1, 'after'='span class="sep"|/span')); ?br /
div id="address"
p.../p
/div
div id="contactInfo"
p.../p
p.../p
/div
/div!-- #footer --
So, my goal is to make the menu look like Home | About | MorePages
with only the root-level pages included.
The problem:
The after
parameter is ignored! If I try before
and items_wrap
, along with other parameters, they are also ignored. I've been able to get after_link
and before_link
to work, as well as depth
.
I've tried escaping things and not passing HTML, but neither helps.
I'm building based on the Sandbox theme, but nav-menu-template.php
and nav-menu.php
appear unchanged from the WP core.
How can I get these custom parameters to work?
Topic sandbox navigation core customization themes Wordpress
Category Web