Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Listing child pages with Custom Field data within the list..

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30130
    cannyboy
    Member

    I know in WordPress you can use wp_list_pages to output a list of child pages, like so:

    wp_list_pages("child_of=".$post->ID."&sort_column=menu_order&depth=1&title_li=");

    But that doesn’t give you much control over the formatting.

    I would like to display a list of child pages with some Custom Field data from those child pages.

    So if my site has a page structure like this..

    -Home
    -Cars
    -Volvo 640
    -Porsche 911
    -Ford Cortina

    ..then on the Cars page I want to list, and link to, each car… together with a Custom Field, for instance Top Speed. Like this:

    Car          Top Speed
    Ford Cortina 100mph
    Porsche 911 200mph
    Volvo 150mph

    I also like to show this in alphabetical order. (also would be curious how to do this in Top Speed order)

    Is any of this possible?

    #80745
    Rob MacKay
    Participant

    I am not too sure what you mean – you can pull custom field data from anywhere but I don’t know what you are really wanting :D

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.