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

  1. nipponese
    Posted 4 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
    Posted 4 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