Wordpress get thumbnail of child page without content?


Staff member
I'm trying to show the child pages in wordpress of lets say page "A", and only show the featured image of each child page without the content or the title showing up..

Right now I have this as my code

<div id="primary" class="full-width">
    <div id="content" role="main">
        <?php query_posts(array('post_parent' => 7, 'post_type' => 'page')); while (have_posts()) { the_post(); ?>
            <?php if ( has_post_thumbnail() ) {?>
                <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
                    <?php echo the_post_thumbnail(large); ?>
            <?php } else { ?>
                <!-- Else Don't show anything -->
            <?php } ?>
         <?php } ?>

Everytime though below the thumbnail is the title of the child page and the content inside of it.