I'm looking to get the road to the very first image inside a wordpress publish. I'm attempting to implement just a little JQuery zoom effect. $thumbID returns the image's thumbnail. I would like this
to suggest towards the original attached images since it is larger than the thumb, that will work perfectly for that zoom effect. Presently I have only 2 posts, each by having an attached image.
<div class="preview"><a href='http://hahadb.com/wp-content/uploads/2010/12/armor-failx640.jpg' class = 'cloud-zoom' id='zoom1' rel="adjustX: 10, adjustY:-4"><?php echo "$thumbID"; ?></a></div>
I believed it. :D Awesome function:
function catch_that_image() publish, $posts $first_img = '' doctor_start() doctor_finish_clean() $output = preg_match_all('/'"['"].*>/i', $publish->post_content, $matches) $first_img = $matches  
if(empty($first_img))digital" return $first_img