using rand
-
hi,
im trying to get a random hero image with$hero_image = query_posts(array(‘post_type’=>’hero_image’, ‘orderby’=>’rand’,’posts_per_page’=>1));
the issue is that a lot of times on reload it uses the same random image. is there
a solution to make sure not the same image is getting used after page refresh?thanks
pete
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘using rand’ is closed to new replies.