WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] sub-page listes as parant page under nav in Modularity Lite 1.2 (2 posts)

  1. hiromisf
    Member
    Posted 3 years ago #

    i am using Modularity Lite 1.2.
    i created pages and 1 sub-page.
    http://www.candmphotography.com/test

    if you click on "menu", parent pages are listed.
    now the bottom one "pet photography rates" is actually a sub-page, its parent page is "pricing", so i would not think sub-page should show up there and i do not want sub-pages to be listed there.

    any idea how i can fix this problem?

  2. hiromisf
    Member
    Posted 3 years ago #

    i figured it out...

    changed
    <?php wp_list_pages('orderby=name&depth=-1&title_li='); ?>

    to
    <?php wp_list_pages('orderby=name&depth=1&title_li='); ?>

    for menu, which got rid of sub page from the drop down list.

Topic Closed

This topic has been closed to new replies.

About this Topic