Main Menu Appears But Sub Menu Does Not Appear

Question

I have added the top menu code below as follows. Home page names are visible, but sub pages are not. How can I fix.

$defaults = array(
                            'theme_location' => 'header-menu',
                            'menu' => '',
                            'container' => '',
                            'container_class' => '',
                            'container_id' => '',
                            'menu_class' => 'main_menu',
                            'menu_id' => '',
                            'echo' => true,
                            'fallback_cb' => 'wp_page_menu',
                            'before' => '',
                            'after' => '',
                            'link_before' => '',
                            'link_after' => '',
                            'items_wrap' => '<ul class="navigation clearfix">%3$s</ul>',
                            'depth' => 0,
                            'walker' => ''
                            );
                        wp_nav_menu($defaults);
0
, , , , Mehmet Sar 3 months 0 Answers 42 views 0

Leave an answer