Title: Random posts within a category?
Last modified: August 18, 2016

---

# Random posts within a category?

 *  [guacamole_queen](https://wordpress.org/support/users/guacamole_queen/)
 * (@guacamole_queen)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/random-posts-within-a-category/)
 * I’m looking for a plugin which allows me to put a certain number of random posts
   from a category at the top of a category page. I’ve set my site up so that I’m
   using Elastic Dog’s “Faking Mulitaple templates” code ([http://elasticdog.com/2004/10/faking-multiple-templates/](http://elasticdog.com/2004/10/faking-multiple-templates/))
   so I’d like to say, something like:
 * `\if ($cat) {
    require_once('includes/random.php'); require('includes/category.
   php');\
 * So every category page would have a certain number of random posts _from that
   category_ at the top.
 *  I’ve looked at the random plugins available (such as Skippy’s, MooKitty’s etc)
   but they’re no really what I’m looking for. The closest likeness would be random_posts
   from [http://www.w-a-s-a-b-i.com](http://www.w-a-s-a-b-i.com) but there’s no 
   function to specify which category those random posts would be from.
    Can anyone
   point me in the right direction?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [dbasulto](https://wordpress.org/support/users/dbasulto/)
 * (@dbasulto)
 * [20 years ago](https://wordpress.org/support/topic/random-posts-within-a-category/#post-144232)
 * i’d like a plugin like that
 *  [dbasulto](https://wordpress.org/support/users/dbasulto/)
 * (@dbasulto)
 * [20 years ago](https://wordpress.org/support/topic/random-posts-within-a-category/#post-144233)
 * i’d like a plugin like that
 *  [3stripe](https://wordpress.org/support/users/3stripe/)
 * (@3stripe)
 * [20 years ago](https://wordpress.org/support/topic/random-posts-within-a-category/#post-144234)
 * [http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/](http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/)
   might help – it’s got a random post function

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Random posts within a category?’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [3stripe](https://wordpress.org/support/users/3stripe/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/random-posts-within-a-category/#post-144234)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
