Hi,
Ok, in your single post template (PHP file) you should be able to use the following code:
<h1>Attached Images & Exit Data</h1>
<?php
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'order' => 'ASC',
'post_parent' => $post->ID
);
$attachments = get_posts( $args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
$imgmeta = wp_get_attachment_metadata( $attachment->ID );
echo '<pre>';
print_r( $imgmeta );
echo '</pre>';
}
}
?>
This code will print out an array of all the image sizes available and the image exif data.
To print out each item separately you can use the following formats (As stated from the website above)
$imgmeta['image_meta']['aperture']
$imgmeta['image_meta']['credit']
$imgmeta['image_meta']['camera']
$imgmeta['image_meta']['caption']
$imgmeta['image_meta']['created_timestamp']
$imgmeta['image_meta']['copyright']
$imgmeta['image_meta']['focal_length']
$imgmeta['image_meta']['iso']
$imgmeta['image_meta']['shutter_speed']
$imgmeta['image_meta']['title']
I hope that helps,