WordPress.org

Ready to get started?Download WordPress

Forums

list_pages() - Having problem with depth (2 posts)

  1. nipponese
    Member
    Posted 3 years ago #

    Basically, depth does not work for me.

    I'm using wp_list_pages("title_li=&depth=2");

    However, all the level 1 items also show up in this list.

    Is there a way to display either items at a specific depth, or only the children of an item without the grandchildren?

  2. DigitalSquid
    Member
    Posted 3 years ago #

    This should give you just the children if a page:

    wp_list_pages('title_li=&depth=1&child_of=*PAGE ID*')

Topic Closed

This topic has been closed to new replies.

About this Topic