wp_nav_menu() Problem!
-
Hello wpeople!
I’m having a little problem and i’m getting very frustrater… i hope you can help me!
I’m developing my own template but i cant get to run the wp_nav_menu() properly. The function itself works, the problem comes -and more than one are going to laugh – when i’m trying to set the parameters of the function. I’m copying and pasting this exact code
`<?php $defaults = array(
‘theme_location’ => ,
‘menu’ => ,
‘container’ => ‘div’,
‘container_class’ => ‘menu-{menu slug}-container’,
‘container_id’ => ,
‘menu_class’ => ‘menu’,
‘menu_id’ => ,
‘echo’ => true,
‘fallback_cb’ => ‘wp_page_menu’,
‘before’ => ,
‘after’ => ,
‘link_before’ => ,
‘link_after’ => ,
‘items_wrap’ => ‘<ul id=\”%1$s\” class=\”%2$s\”>%3$s</ul>’,
‘depth’ => 0,
‘walker’ => );
?><?php wp_nav_menu( $defaults ); ?> `
from https://codex.www.ads-software.com/Function_Reference/wp_nav_menu and it gives me a syntax error… and honestly i dont see any syntax error but maybe i’m too tired.
Hope you can help me out here!
- The topic ‘wp_nav_menu() Problem!’ is closed to new replies.