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-1/)
 * 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!

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/format-array-code-for-orderby-post_in-1/#post-7516798)
 * I recommend asking at [https://wordpress.org/support/plugin/wp-tiles](https://wordpress.org/support/plugin/wp-tiles)
   so the plugin’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

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

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [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/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/format-array-code-for-orderby-post_in-1/#post-7516798)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
