Title: Custom Ordering
Last modified: August 20, 2016

---

# Custom Ordering

 *  [rcvaughn](https://wordpress.org/support/users/rcvaughn/)
 * (@rcvaughn)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/custom-ordering/)
 * So I am working on creating a plugin that adds staff members. I want to be able
   to customize the ordering, instead of just alphabetically.
    I have a custom post
   type for saving the order #, but it doesn’t actually put anything in order. Here
   is what I have so far.
 *     ```
       <?php query_posts( array(
        	'post_type' => 'employees',
        	'posts_per_page' => -1,
        	'orderby' => 'dispord',
        	'order' => 'ASC'
       )
       ); ?>
       ```
   
 * Right now it only sorts by the ascending, but not to the number I assign it to.
   Any suggestions?

The topic ‘Custom Ordering’ is closed to new replies.

## Tags

 * [orderby](https://wordpress.org/support/topic-tag/orderby/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [rcvaughn](https://wordpress.org/support/users/rcvaughn/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/custom-ordering/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
