Does anyone can share a code snippet, how to get first attached image path inside of the loop in index.php?
Thanks for a quick reply. However I’m having problems
$images =& get_children( ‘post_parent=’.$post->ID.’&post_type=attachment&post_mime_type=image’ ); print_r($images);
It seems that it doesn’t populate an array… really strange
Take a look at Jeff Starr’s post on displaying Image Attachments:
Take a look at WordPress for Designers Day 17, we deal with using attachments within the loop and how to display them.