WordPress.org

Ready to get started?Download WordPress

Forums

Navigaton: Hide sub-pages of sub-page (11 posts)

  1. charlene2021
    Member
    Posted 7 years ago #

    I have some sub-pages for a sub-page and I want to be able to keep those pages from being listed on the pages navigation ( wp_list_pages)

  2. moshu
    Member
    Posted 7 years ago #

    Did you take a look at the depth parameter? (Setting it to 2 would probably do what you want)

  3. rica125
    Member
    Posted 7 years ago #

    I also want to learn how to do this.

    And can you please clarify.

    Thanks.

  4. moshu
    Member
    Posted 7 years ago #

  5. charlene2021
    Member
    Posted 7 years ago #

    I will take a more thorough look at the page. Thanks

  6. charlene2021
    Member
    Posted 7 years ago #

    Got it. For rica, what does your wp_list_pages code on your sidebar look like. I can tell you exactly what to put down.

  7. jeremyduffy
    Member
    Posted 7 years ago #

    depth=1

  8. moshu
    Member
    Posted 7 years ago #

    Actually, for the OP question = 2.

  9. rica125
    Member
    Posted 7 years ago #

    Got it. For rica, what does your wp_list_pages code on your sidebar look like. I can tell you exactly what to put down.

    Ok. I may sound stupid, but what does that mean? Do you just want my sidebar.php? It's

    [moderated, too long...]
    http://wordpress.pastebin.ca/567783

    I'm in the process of making my own theme though. I just want to learn how to do this first.

  10. dopecoder
    Member
    Posted 7 years ago #

    Hi

    See this tutorial on how to hide subpages from sidebar.
    http://bloggerholic.com/wordpress/hide-subpages-66.htm

  11. garryconn
    Member
    Posted 7 years ago #

    Ok.. this is very close to what I have been looking for, but not quite.

    I have a main page and then I have sub pages and these sub pages have sub-sub pages, and these sub-sub pages actually have sub-sub-sub pages.

    From the main page, I want to display only the sub pages...

    and from the sub-pages, I only want to display their own sub-sub pages.

    and from the sub-sub pages, I only wan tto display their own sub-sub-sub pages.

    How do I do that?

    Best Regards,
    Garry Conn

Topic Closed

This topic has been closed to new replies.

About this Topic