WordPress.org

Ready to get started?Download WordPress

Forums

Randomize Posts in Category (4 posts)

  1. aweblogs
    Member
    Posted 6 years ago #

    I've seen another similar question here but it went unanswered, i hope someone can help me with this.

    Basically i'm starting a mini site using WP and i have a few categories, each category will ONLY have a maximum of 5 posts.

    What i need is for these posts to appear in random order whenever someone visits my category page, right now the default is it will display my latest post in that category.

    If anyone could help that would be great.

    Thanks

  2. whooami
    Member
    Posted 6 years ago #

    nope, actually it didnt go unanswered :)

    http://wordpress.org/support/topic/123896?replies=13

    the solution was to use shuffle

    http://www.php.net/shuffle

    I cant give you much more since I dont know the query you're using.

  3. aweblogs
    Member
    Posted 6 years ago #

    Sweet mother of God, thanks!! :D

  4. whooami
    Member
    Posted 6 years ago #

    haha your welcome :O

Topic Closed

This topic has been closed to new replies.

About this Topic