Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Wordpress/PHP Coding Help

  • 05-05-2014 03:05PM
    #1
    Posts: 7,542 ✭✭✭


    This post has been deleted.


Comments

  • Registered Users, Registered Users 2 Posts: 7,184 ✭✭✭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.


  • Posts: 7,542 ✭✭✭ [Deleted User]


    This post has been deleted.


Advertisement