I need to retrieve the src of an img in the "the_content" and also need to print it in the last anchor as you can see in the code below. I tried almost everything from my knowledge and also from the internet but no luck. plz help.
I removed everything that I tried and put the clean code so that you guys could easily understand it.
<?php query_posts('cat=7');?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="impresna zoom-img" id="zoom-img">
<?php the_content(); // it contain images>
<span class="main"><span class="emboss">MARCA - SP</span><?php the_date(); ?>
<a class="lb_gallery" href="need to print url of image here">+ZOOM</a></span>
<br clear="all" />
</div>
<?php endwhile; ?>
<?php endif; ?>