你好Im新的WordPress的,但我设计了一些元素,并在他们最近的帖子。我的问题是,我可以让他们重复5次吗?谢谢:)WordPress的query_posts()
<div id="main_content">
<h2>Latest Products</h2>
<div class="latest_products">
<div class="group">
<?php query_posts("post_per_page=1"); the_post(); ?>
<h3 class="stick_note"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="pro_content">
<div class="product_thumbnail"> <?php the_post_thumbnail('thumbnail'); ?> </div>
<p><?php the_excerpt(); ?></p>
</div>
</div>
</div> <!-- END LATEST PRODUCTS -->
</div> <!-- END Main Content -->
更具体。你的问题对于不知道你建立什么的人以及为什么没有任何意义。 – 2013-05-14 10:47:12
我在博客中有帖子,在主页我想展示最近的5篇帖子,这段代码给我带来了第一个。我想这整个结构重复每个帖子得到5个 – 2013-05-14 10:52:29