Title: random post call
Last modified: August 19, 2016

---

# random post call

 *  [xxhunterxx](https://wordpress.org/support/users/xxhunterxx/)
 * (@xxhunterxx)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/random-post-call/)
 * hello
    how to call random posts in index
 * tnx

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

 *  Thread Starter [xxhunterxx](https://wordpress.org/support/users/xxhunterxx/)
 * (@xxhunterxx)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/random-post-call/#post-1268181)
 * doesnt matter found it …
    tnx any way
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/random-post-call/#post-1268182)
 *     ```
       <?php
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $args= array(
       	'orderby' => 'rand',
       	'paged' => $paged
       );
       query_posts($args);
       ?>
       ```
   
 * [http://codex.wordpress.org/Template_Tags/query_posts](http://codex.wordpress.org/Template_Tags/query_posts)

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

The topic ‘random post call’ is closed to new replies.

## Tags

 * [random posts](https://wordpress.org/support/topic-tag/random-posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/random-post-call/#post-1268182)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
