Title: Sorting Posts Automatically (not by date)
Last modified: August 21, 2016

---

# Sorting Posts Automatically (not by date)

 *  [MagineM](https://wordpress.org/support/users/maginem/)
 * (@maginem)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-posts-9/)
 * Hi,
 * I’ve been searching and tried all sorts of plugins for sorting my posts according
   to their title, but with no luck. I can’t believe that it’s so difficult and 
   that it actually isn’t a core feature in WP to have sorting conditions.
 * I’ve got a custom post and just need to sort the posts according to their titles
   and not date of entry. Most plugins I’ve tried allow you to manually sort posts,
   but this is not really ideal if I’ve got 200+ posts already. How can one go about
   sorting them automatically?
 * Any help greatly appreciated.

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

 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-posts-9/#post-4264039)
 * [WP_Query](http://codex.wordpress.org/Class_Reference/WP_Query) is your friend:
 *     ```
       $query = new WP_Query( array ( 'orderby' => 'title', 'order' => 'DESC' ) );
       ```
   
 *  Thread Starter [MagineM](https://wordpress.org/support/users/maginem/)
 * (@maginem)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-posts-9/#post-4264040)
 * Hi WPRanger,
 * Thanks for the feedback. My apologies for this next question, but where would
   I plug this in to make it work?
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-posts-9/#post-4264041)
 * In your [custom template](http://codex.wordpress.org/Page_Templates). You’re 
   going to have to create a [custom loop](http://codex.wordpress.org/The_Loop) 
   to deal with the query you’re after.
 *  Thread Starter [MagineM](https://wordpress.org/support/users/maginem/)
 * (@maginem)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-posts-9/#post-4264091)
 * Thanks, will try and hash it out.

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

The topic ‘Sorting Posts Automatically (not by date)’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [MagineM](https://wordpress.org/support/users/maginem/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-posts-9/#post-4264091)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
