• Hi people, on my localhost i have wp 2.5 & 2.3 and i use this code to show a list of 10 random post:

    <?php

    $rand_posts = get_posts(‘numberposts=10&orderby=RAND()’);

    foreach( $rand_posts as $post ) :

    ?>

    • “><?php the_title(); ?>
    • <?php endforeach; ?>

      But.. with wp 2.6 the list only show a list of the latest 10 post..

      What changed in wp 2.6 ? i want to know, how i modify the code?

      Sorry my english..

Viewing 1 replies (of 1 total)
  • Thread Starter zonakaoz

    (@zonakaoz)

    the system deletes me some code, only ul tag and href.. but the important is there,,

    $rand_posts = get_posts(‘numberposts=10&orderby=RAND()’);

Viewing 1 replies (of 1 total)

The topic ‘Problem showing random post’ is closed to new replies.