WordPress.org

Ready to get started?Download WordPress

Forums

List Child Pages Only (2 posts)

  1. James M
    Member
    Posted 8 years ago #

    Hello,
    I've been working with the template tags, specifically the wp_list_pages() .

    I was glad to find the argument of depth, to show only parent pages.

    But, I have found the need to list just the Child Pages of a Specific Parent Page on a page. I was hoping there was another argument that I could pass in the wp_list_pages() tag to specify what parent page to use.

    I would imagine it would look something like this:
    wp_list_pages('sort_column=menu_order&title_li=&parent_id=5');

    It would be really nice to have this ability.

    Any info would be greatly appreciated!
    James

  2. Kafkaesqui

    Posted 8 years ago #

    http://codex.wordpress.org/Template_Tags/wp_list_pages

    See the info on the 'child_of' parameter.

Topic Closed

This topic has been closed to new replies.

About this Topic