<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello Guys,<br>
<br>
I am having trouble with wp_nav_menu walker function.<br>
<br>
It is giving me error: <b>Notice</b>: Trying to get property of
non-object in <b>D:\xampp\htdocs\...\wp-includes\nav-menu-template.php</b>
on line <b>153 & 156.<br>
<br>
</b>My code is below:<br>
-----------------------------------<br>
wp_nav_menu(<br>
array(<br>
'theme_location' => 'primary',<br>
'menu_class' => 'navbar-collapse collapse',<br>
'walker' => new Primary_Walker_Nav_Menu()<br>
)<br>
);<br>
<br>
class Primary_Walker_Nav_Menu extends Walker_Nav_Menu {<br>
function start_lvl( &$output, $depth = 0, $args = array() )
{<br>
$indent = str_repeat("\t", $depth);<br>
$output .= "\n" . $indent . "<ul
class=\"dropdown-menu\">" . "\n";<br>
}<br>
}<br>
<br>
Can you guys please help me on this?<br>
<br>
Thanks,<br>
Prayas Sapkota<br>
</body>
</html>