我试图在wordpress循环中去掉下面的返回。我想在条目旁边显示一个缩略图,它看起来糟透了:

我试着用填充物作为条目,但更糟!!
这是我的密码:
#thumbnail_single {
float: left;
}
.entry_single {
padding: 20px;
}<div id="single">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 class="title_single"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div id="thumbnail_single">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
</div>
<div class="entry_single">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
</div>
<!-- single -->
谢谢你的帮助!
发布于 2016-05-15 20:43:13
尝试将20 as填充添加到#thumbnail_single中。
https://stackoverflow.com/questions/37243442
复制相似问题