Hi, I have a page called "Front Page" with a page id of 22. I added a single image to it and in the media library it has an id of 30.
in my page template I want to insert this image and can do so with the code
<?php echo wp_get_attachment_image( '30', 'full' ); ?>
My question is, how do I, from within the loop get the ID of the gallery image associated with the post?