I want to specify for the images of my post - if is number x, output this, else if is number y output this instead, etc. I'm trying make specific treatments to my 1st, 4th, 9th images for that post. This code below is the code i'm using to just simply output all of my images for the post. Any ideas?
<?php $images = get_post_meta($post->ID, 'rw_postpage_images'); ?>
<?php foreach ($images as $att) {
$src = wp_get_attachment_image_src($att, 'full');
$src = $src[0];
$image_path = thumbGen($src,80,80,"crop=1&halign=center&valign=center&return=1");
?>
<div class="post_item">
<div class="small">
<img src="<?php echo $image_path; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" width="80" height="80"/>
</div>
</div>
<?php } ?>