List page children as images (1 post)

  1. jamideleon
    Posted 8 years ago #

    Ok, this code lists the children of a page parent:

    $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    if ($children) { ?>
    <?php echo $children; ?>
    <?php } ?>

    It only lists the children as text links and not as images. What I want is to display images on every children on the list by using custom fields. URL of the images will be inputed in the custom field (for example 'Image') of every child page.

    Any suggestions? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic