Forums

depth=1 not working (3 posts)

  1. agatha83
    Member
    Posted 2 years ago #

    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

    http://thelondonlife.de/

    <?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 :(

  2. agatha83
    Member
    Posted 2 years ago #

    bump

  3. agatha83
    Member
    Posted 2 years ago #

    bump

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags