WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to display on a page a list of her child pages and their content (3 posts)

  1. cooperanet
    Member
    Posted 4 years ago #

    Hi,

    As I'm trying to use WordPress more as a CMS than a blogging platform, I'd like to do the following thing:

    For each page of my website, I'd like to display her child pages (if the page has subpages) with their content and/or their custom fields, like if it was a list of posts in a category. Ex:

    Page
    -> title of the child page 1
    content of the child page 1
    custom field of the child page 1

    -> title of the child page 2
    content of the child page 2
    custom field of the child page 2

    -> title of the child page 3
    content of the child page 3
    custom field of the child page 3
    ...

    I try to play with the wp_list_pages but I don't have any result.

    If someone know how to do the trick, please help me!

  2. MichaelH
    Member
    Posted 4 years ago #

    Take a look at Function_Reference/get_pages.

    See other examples in Pages.

  3. cooperanet
    Member
    Posted 4 years ago #

    Thank you.

    I will give it a try and I will post here the result asap.

Topic Closed

This topic has been closed to new replies.

About this Topic