我想在这个网站底部显示从图像下方的帖子摘录的一行:http://www.wha2wear.com/这是用于获取图像的PHP函数和摘录:图像摘录如下PHP
<div class="blog">
<h2><span>Sneak peak</span></h2>
<ul>
<?php query_posts('orderby=comment_count&posts_per_page=6'); if (have_posts()):
while (have_posts()) : the_post(); ?>
<li>
<h3 class="short_title"><a title="Post: <?php the_title(); ?>" href="<?php
the_permalink(); ?>"><?php echo ShortTitle(get_the_title()); ?> </a></h3>
<a href="<?php the_permalink(); ?>"><?php getImage('1'); ?></a>
<a href="<?php the_permalink(); ?>"><?php echo limit_words(get_the_excerpt(), '6');
echo '...</a>';
echo '</li>'; ?></a>
<?php endwhile; ?></li>
<?php else : ?>
<p>Sorry, no posts were found.</p>
</ul>
</div>
问题在于其中两张照片摘录显示在照片旁边,而不是它下面......谢谢!
谢谢,但我已经尝试过,没有运气..它看起来像图像是直接从图像对齐到左侧和另一个右侧的帖子进行对齐 – Candice