WordPress.org

Ready to get started?Download WordPress

Forums

List page children as images (1 post)

  1. jamideleon
    Member
    Posted 6 years ago #

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

    <?php
    $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    if ($children) { ?>
    <ul>
    <?php echo $children; ?>
    </ul>
    <?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

Tags