我正在尝试设置wordpress滑块,如何在wordpress循环中获得精确的以下结果
<div id="carousel">
<img src="slide1.png" alt="" class="slide" />
<img src="slide2.png" alt="" class="slide" />
<img src="slide3.png" alt="" class="slide" />
</div>
<ul id="carousel-descriptions">
<li class="desc current">Slide 1 Description Goes Here</li>
<li class="desc">Slide 2 Description Goes Here</li>
<li class="desc">Slide 3 Description Goes Here</li>
</ul>
<div id="carousel-controls">
<span class="control current">Show Me<br>Slide 1</span>
<span class="control">Show Me<br>Slide 2</span>
<span class="control">Show Me<br>Slide 3</span>
</div>
例如,我想在
$my_query = new WP_Query(\'cat=49&showposts=4&orderby=RAND\');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>
above code
<?php endwhile; ?>
请告诉我是否有其他方法可以达到相同的效果,但orderby=RAND对我来说很重要
BR公司