I'm using the code below to query all other posts with same value in custom field FeaturedArtists. Works great except the images. All images are the same as the current post. If I change catch_that_image into the_post_thumbnail the same happens.
<?php $FeaturedArtist = get_post_meta($post->ID, 'FeaturedArtist', true); if($FeaturedArtist): ?>
<?php $chapters = get_posts('numberposts=-1&meta_key=FeaturedArtist&orderby=date&order=ASC&meta_value='.$FeaturedArtist); foreach($chapters as $chapter):?>
<div class="box more">
<?php if($chapter->ID != $post->ID): ?>
<a href ="<?php echo get_permalink($chapter->ID); ?>" alt="CONTEST ENTRY by <?php the_title(); ?>" title="CONTEST ENTRY by <?php the_title(); ?> ">
<img src="<?php echo catch_that_image() ?>" width="625px" alt="<?php the_title(); ?>"/>
<div class="articleTitle">
<span class="titleType">CONTEST ENTRY<br /><span class="titleArticle"><?php the_title(); ?></span></span>
</div>
</a>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
Anyone an idea on how to fix this? Thanks for helping me out!