• i know that there is a specific plugin to do the job but my question is if there is a way to randomize my posts not on refresh the page but on time limit…like for example every 24 hours…
    any suggestions?
    thanks;)

Viewing 3 replies - 1 through 3 (of 3 total)
  • By seeding the MySql random number generator with the Julian date, you can get a different set of posts every day.

    $seed = gregoriantojd(date('m'),date('d'),date('Y'));
       $sql = "select * from $wpdb->posts order by rand($seed) limit 0,10";
    Thread Starter anime_t

    (@anime_t)

    thanks but how… im quite newbiee and i think im confused…

    You will need to edit your theme’s file that displays the posts. The exact file and exact changes depend on the theme. It is usually index.php, but is a different file in some themes.

    If you are using a free theme, post a link to your site and I may be able to give more specific help. If you are using a paid theme, you will need to contact the supplier for help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘randomize help please…’ is closed to new replies.