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

Wordpress/PHP Coding Help

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


    This post has been deleted.


Comments

  • Registered Users Posts: 6,016 ✭✭✭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