Title: Retrieve Random Posts and Sort Alphabetically
Last modified: August 22, 2016

---

# Retrieve Random Posts and Sort Alphabetically

 *  [MaryamZ](https://wordpress.org/support/users/maryamz/)
 * (@maryamz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/retrieve-random-posts-and-sort-alphabetically/)
 * I’m trying to retrieve 20 posts at random AND sort them alphabetically using 
   get_posts(). However, I can’t figure out a way to do these two things at once
   since they are both controlled by the “orderby” parameter, so I can only do one
   or the other. Does anyone have any suggestions on how to get around this?

The topic ‘Retrieve Random Posts and Sort Alphabetically’ is closed to new replies.

## Tags

 * [alphabetical](https://wordpress.org/support/topic-tag/alphabetical/)
 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)

 * 0 replies
 * 1 participant
 * Last reply from: [MaryamZ](https://wordpress.org/support/users/maryamz/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/retrieve-random-posts-and-sort-alphabetically/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
