orderby=rand dont work, any help pls
-
Hello every one,
i allways use the orderby=rand in all my themes, but recently with my last website, the orderby=rand wont to work, and it show only the latest article, see the link in the bottom of the home page : clique herthis is the code i use :
<?php query_posts('showposts=1&category_name=voiture&orderby=rand'); if (have_posts()) : while (have_posts()) : the_post(); ?> <img src="img.jpg"/> <div> Type de voiture : Tourisme Marque de voiture : Fiat Model de voiture : PANDA <a href="#">Réservation en ligne</a> </div> <?php endwhile; else : ?> <?php endif; wp_reset_query();?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘orderby=rand dont work, any help pls’ is closed to new replies.