0
我想要一个随机的邮政顺序,但它不工作:帖子的顺序仍然是by date
。你可以帮我吗?WordPress的 - 随机邮政订单
http://inge.timrodenbroeker.de
<!-- T H E L O O P -->
<?php query_posts(array('post_type' => 'post', 'orderby' => 'rand', 'posts_per_page' => -1)); ?>
<?php if (have_posts()): $i = 0; ?>
<?php while (have_posts()) : the_post(); $i++; ?>
<div class="article-content <?php if ($i % 7 == 0) echo 'seventhclass'?>" id="post-<?php the_ID(); ?>">
<div class="article-thumb">
<?php the_content(); ?>
<!-- Close article-thumb -->
</div>
<!-- Close article-content -->
</div>
<?php endwhile; ?>
<!-- /T H E L O O P -->
哪种方法对我的问题最好? – timrodenbroeker