【发布时间】:2011-04-14 01:45:43
【问题描述】:
大家好,我叫安东尼,这是我的第一个问题。我目前正在制作一个 wopress 主题。在循环中,我希望有两个“post-entry” div,一个很小,放在我的 post thumb 旁边,一个没有 thumb。
我知道我需要做一个
<div class="post">
<?php if ( has_post_thumbnail()) { ?><div class="post-thumb"> <?php the_post_thumbnail(); ?> </div> <div class="post-entry-1"> <? } else { ?><div class="post-entry-2"> <?php } ?>
任何帮助将不胜感激,因为我已经坚持了几天了。
【问题讨论】:
-
这对于 StackExchange 的新 WordPress Answers Beta 站点来说是一个很好的问题。
-
嗨 Chris_O 谢谢你的评论和建议,我会在那里添加:)
标签: wordpress loops thumbnails wordpress-theming