Hi,
I'm using this code to fetch all image attachments from each post:
<?php if ( $images = get_children(array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'post_mime_type' => 'image',
))) : ?>
<ul>
<?php foreach( $images as $image ) : ?>
<li><?php echo wp_get_attachment_link($image->ID, 'thumbnail-latest'); ?></li>
<?php endforeach; ?>
</ul>
<?php else: // No images ?>
<!-- This post has no attached images -->
<?php endif; ?>
For example a Particular post has 3 uploads/attachements 1 x Featured Image and 2 x sub images....
I want to exclude the featured image so it just shows the other 2 images uploaded...
How can that be done please?
Thanks.