我正在为我的主题开发一个自定义页面(我使用的是 Foundation 4)来显示特定类别的帖子。我正在尝试将摘录放入框中(使用 4 列类),该框也显示帖子的缩略图。
问题是这些框在彼此下方排列(请参阅打印屏幕的链接):
这是代码:
<?php get_header(); ?>
<div class="row">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(''); ?>
<?php endwhile; ?>
<?php query_posts('cat=12'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="row" >
<div class="large-12 columns" >
<div class="large-4 columns panel" style="float:left">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail');?> </a>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<p class="button radius radius small"><a href="<?php the_permalink(); ?>">Ler matéria</a></p>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query();?>
<?php endif; ?>
</div
<?php get_footer(); ?>
如果有人可以帮助解决这个问题,我会很高兴!非常感谢!!!