Forums

Change order of posts on index page to random (4 posts)

  1. nearly_there
    Member
    Posted 10 months ago #

    Hi,

    I've been trying to change the posts that are displayed on the index page to random, instead of the default setting of newest first. Looking to get it to change the posts every time the site it logged onto.

    I've found this thread (http://wordpress.org/support/topic/change-post-order-on-front-page-to-random) where the guy is looking to do the same thing, but I can't read the code as the links appear to be dead. (http://wordpress.pastebin.ca/1820031)

    My site is:
    http://www.documentarydimension.com/

    Below you can see the code from the index.php file.

    Thanks,
    Barry

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. nearly_there
    Member
    Posted 10 months ago #

    Here is the code:
    http://pastebin.com/ZjPBWwwD

  3. nearly_there
    Member
    Posted 10 months ago #

  4. nearly_there
    Member
    Posted 10 months ago #

    mmhhh well nearly!

    The problem with that plugin is that is doesn't actually change the order to random, it just inserts 5 random posts before the normal list that is displayed... So would probably be better off going the other route and changing the order to random through the index file...

    Any suggestions?

Reply

You must log in to post.

About this Topic