WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] unable to list sub pages (3 posts)

  1. migael
    Member
    Posted 4 years ago #

    wordpress version: 2.8.4.

    the version itself is working
    however with the skin : ACMS 1.5
    it's not working

    see the link below... I've added a "pages" widget to show that I've placed the sub page on the correct way

    however right above it it's simply not working...
    not to mention it shows subpages right at the top >.>

    http://alubouwnl.nl/

  2. Edward Caissie
    Theme Review Admin
    Posted 4 years ago #

    The menu in the left column is being controlled from the sidebar.php file by this line:

    <?php wp_list_pages('sort_column=menu_order&depth=-1&title_li='); ?>

    The display of sub-pages is being controlled essentially by the depth=-1 parameter.

    Here is a link to the codex for the function: http://codex.wordpress.org/Template_Tags/wp_list_pages

    You might try changing the line to:

    <?php wp_list_pages('sort_column=menu_order&depth=0&title_li='); ?>

    as a starting point ...

  3. migael
    Member
    Posted 4 years ago #

    in the end I decited to take a different template ^^ so I seppose that fixes the problem too...

Topic Closed

This topic has been closed to new replies.

About this Topic