Title: format array code for orderby post__in
Last modified: September 1, 2016

---

# format array code for orderby post__in

 *  [kerican](https://wordpress.org/support/users/kerican/)
 * (@kerican)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/format-array-code-for-orderby-post_in-2/)
 * Hi all,
 * I’ve tried altering the orderby code in WPTiles to display gallery photos in 
   a specific order.
 * This is what I’ve tried so far that doesn’t work. I’m not sure I’m formatting
   the array correctly.
 *     ```
       [wp-tiles post_type="jetpack-portfolio" post__in=(87,84,110,109,86,83,82,85,88,157) orderby="post__in"  order="ASC" grids="Golden Ratios" full_width="true"]
   
       <hr />
   
       [wp-tiles post_type="jetpack-portfolio" orderby="date" order="DESC" grids="Golden Ratios" full_width="true"]
       ```
   
 * The first section is my attempt at setting up the array for post__in.
    The second
   section is the original code.
 * Here’s the test page I created to try out WPTiles:
 * [Tiled Gallery Test Page](http://kericanrn.cikeys.com/tiled-gallery-test-page/)
 * Thanks for your help!
 * [https://wordpress.org/plugins/wp-tiles/](https://wordpress.org/plugins/wp-tiles/)

The topic ‘format array code for orderby post__in’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-tiles_8f8e84.svg)
 * [WP Tiles](https://wordpress.org/plugins/wp-tiles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-tiles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-tiles/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-tiles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-tiles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-tiles/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [orderby](https://wordpress.org/support/topic-tag/orderby/)
 * [post__in](https://wordpress.org/support/topic-tag/post__in/)
 * [wptiles](https://wordpress.org/support/topic-tag/wptiles/)

 * 0 replies
 * 1 participant
 * Last reply from: [kerican](https://wordpress.org/support/users/kerican/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/format-array-code-for-orderby-post_in-2/)
 * Status: not resolved