WordPress.org

Support

Support » How-To and Troubleshooting » List a selected parents subpages with custom fields

List a selected parents subpages with custom fields

  • I am using flutter, and I would like to list a selected parents child pages along with a custom field which I assigned to them using flutter.

    Please if anyone has any insight help me out. I can get the pages to list using:

    <?php
    $pageChildren = get_pages('sort_column=menu_order&hierarchical=0&child_of='. '134');
    if ( $pageChildren ) {
      foreach ( $pageChildren as $pageChild ) {
        echo '<li><a href="' . get_permalink($pageChild->ID) . '">'. $pageChild->post_title.'</a></li>';
          echo '<li>'.$key="toolname"; echo get_post_meta($post->ID, $key, true).'</li>';
        }
    }
    ?>

    Unfortunately the customfield “TOOLNAME” does not show my customfield.

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘List a selected parents subpages with custom fields’ is closed to new replies.