WordPress.org

Forums

Random Posts in Loop (2 posts)

  1. heymaitland
    Member
    Posted 5 years ago #

    Hey everyone!

    Bit of a dilemma, I wan't the loop on index/archives/categories etc to display posts from that date/tag/category randomly. I've done some searching around and I've found these solutions with query_posts that display random posts, but not in relation to the page I was on. So if I'm on the 'example' category i would need random posts form 'example' category to be displayed.

    Is this possible?

    Thanks so much for your help!! The site uses the standard loop functions at the moment -

    <?php if (have_posts()) : ?>
    
    	<?php while (have_posts()) : the_post(); ?>
    ETC

    Cheers,
    Tom

  2. esmi
    Forum Moderator
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic