Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

Wordpress/PHP Coding Help

  • 05-05-2014 3:05pm
    #1
    Registered Users Posts: 7,541 ✭✭✭


    This post has been deleted.


Comments

  • Registered Users Posts: 5,995 ✭✭✭Talisman


    In order to do this you are going to need a data structure to record what posts have already been displayed.

    A better approach might be to get the list of post ids from the database, shuffle them in an array (use PHP shuffle() function) and increment through the array of shuffled ids.

    You could use the WP Session Manager plugin to store the array in a session variable.


  • Registered Users Posts: 7,541 ✭✭✭Heisenberg.


    This post has been deleted.


Advertisement