「the_content」でimgのsrcを取得する必要があります。また、以下のコードでわかるように、最後のアンカーに出力する必要があります。私は自分の知識とインターネットからほとんどすべてを試しましたが、運がありませんでした。plzヘルプ。
私は試したものをすべて削除し、皆さんが簡単に理解できるようにクリーンなコードを配置しました。
<?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; ?>