depth=1 not working
-
i have my depth in the header menu set to 1 but it’s still showing the grandchildren which are on the left menu navigation
<?php echo preg_replace('@\<li([^>^]*)>\<a([^>^]*)>(.*?)\<\/a>@i','<li$1><a$2><span>$3</span></a>',wp_list_pages('echo=0&sort_column=menu_order&title_li=&depth=1'));?>
when i try to set the depth in the left submenu to 1 the third level disappears all in all
<ul>'; $html = wp_list_pages("child_of=$parent_id&depth=1&echo=".(!$return)."&title_li=0&sort_column=menu_order"); echo'</ul>
can anybody please give me a tip about what i am doing wrong here?i’m lost ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘depth=1 not working’ is closed to new replies.