WordPress.org

Ready to get started?Download WordPress

Forums

Query Posts to OrderBy Date and then Random? (1 post)

  1. rlthorman
    Member
    Posted 2 years ago #

    I would like to order my posts first by date, and then randomly.

    Using the function query_posts and orderby doesn't work. I can randomize the posts, but I cannot order them by date first and then randomize those posts within a date. Presumably, this would look like

    query_posts(array('orderby' => 'date rand'));

    But that randomizes posts and ignores the date. I thought you could order my multiple values, but it doesn't seem to be working.

    Any thoughts?

Topic Closed

This topic has been closed to new replies.

About this Topic