Support » Plugins » Display meta_value within a list of pages

  • Hi,
    I would like to display the value (whatever the value is) of a custom field after each link in a list of pages. Something like that :

    link1 (page1)
    value1 (value for the field ‘status’ of page 1)
    Link2 (page2)
    value2 (value for the field ‘status’ of page 2)
    etc.

    At the moment I have the list I want to have. It is given by :

    if($post->post_parent) {
    	$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
      }

    And then :
    <?php echo $children; ?>
    This is the only part of the code where I need to add that meta_value. (the else part is not concerned).

    I don’t have a clue. I googled all day. I understand that wp_list_pages is not going to display anything else than the name of the page. But then what should I do ?
    Any help would be great.
    Thank you
    Christine

  • The topic ‘Display meta_value within a list of pages’ is closed to new replies.