Title: Image Order
Last modified: August 20, 2016

---

# Image Order

 *  [harringtonjw](https://wordpress.org/support/users/harringtonjw/)
 * (@harringtonjw)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/image-order/)
 * I have a custom post type that calls in the images attached to a post without
   actually using the wordpress gallery feature. So far it seems to display the 
   posts in the reverse order they where updated. I have tried adding the code `'
   order'=> 'ASC',` in various places and I keep getting errors. Would someone mind
   advising if I am going about this the right way and if possible help me fix the
   code to display the images in the order set in the media section of the post 
   or advise if I need to get my post code redone to use the Gallery plugin?
 * Many Thanks
 * James
 * _[[code moderated - please use the pastebin for any code over the forum limit of 10 lines]](http://codex.wordpress.org/Forum_Welcome#Posting_Code)_

Viewing 1 replies (of 1 total)

 *  Thread Starter [harringtonjw](https://wordpress.org/support/users/harringtonjw/)
 * (@harringtonjw)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/image-order/#post-2657224)
 * Sorry here is the link to my code
 * [http://pastebin.com/4hG5Fvm7](http://pastebin.com/4hG5Fvm7)

Viewing 1 replies (of 1 total)

The topic ‘Image Order’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [harringtonjw](https://wordpress.org/support/users/harringtonjw/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/image-order/#post-2657224)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
