Support » Fixing WordPress » Error with Random article

  • Anonymous

    Hi there, I just upgraded to 2.6 and my random article generator just stopped working. It now shows my most recent post instead. Can anyone tell me how to fix it? The current code is below:

    			 $rand_posts = get_posts('numberposts=1&orderby=RAND()');
    			 foreach ($rand_posts as $post) :

    Thanks for any help you can give!

  • The topic ‘Error with Random article’ is closed to new replies.