Not signed in (Sign In)
    •  
      CommentAuthorwpuser
    • CommentTimeJun 17th 2009
     
    Hello,

    I have an issue with the pages widget in the top navigation.
    My pages have sub pages attached to them, and the sub pages are automatically shown as well (underneath the main pages) - which breaks the layout.
    I will have Three main pages (about, products, contact) - underneath the products page I will have Checkout , Your Account and transaction result.
    The li for products will take the full with for the three sub pages and the sub pages will be displayed underneath it. I think it would be better to hide them initially - do something else with them.

    Thanks!
    •  
      CommentAuthorKrT
    • CommentTimeFeb 2nd 2010
     
    I second that question. I have the same problem with sub pages showing in the top navigation widget. Is there an easy way to remove the sub pages and just show the top level pages?
    •  
      CommentAuthorKrT
    • CommentTimeFeb 2nd 2010
     
    To add to my previous post - I am using Clean Home Pro and v. 2.9.1 of WP
    •  
      CommentAuthorBryan
    • CommentTimeFeb 2nd 2010
     
    Hey guys, this is a quite modification that you can read about here: http://codex.wordpress.org/Template_Tags/wp_list_pages

    Basically, open header.php, find wp_list_pages() and add &depth=1 to the end of the string.

    IE: <?php wp_list_pages('title_li='); ?> to <?php wp_list_pages('title_li=&depth=1'); ?>

    This should accomplish that!

    Bryan