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

  • 05-05-2014 03:05PM
    #1
    Posts: 0 ✭✭✭


    This post has been deleted.


Comments

  • Registered Users, Registered Users 2 Posts: 6,636 ✭✭✭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: 0 ✭✭✭ [Deleted User]


    This post has been deleted.


Advertisement