Title: Query Post Order
Last modified: August 19, 2016

---

# Query Post Order

 *  [wireframe74](https://wordpress.org/support/users/wireframe74/)
 * (@wireframe74)
 * [16 years ago](https://wordpress.org/support/topic/query-post-order/)
 * Hi I have a query post on a page located here
    [Roplay](http://www.roplay.co.nz/downloads/)
 * It retrieves child pages of a page that acts as a filter with the query post 
   function..
 * Am using flutter for the custom fields..
 * There is a problem however as I do not seem to be able to sort the order of entries..
 * I cant seem to find a plugin that can sort the order of pages with query post
   function..
 * Is there a a way in which I can use flutter for this?
 * Or am i best off recreating downloads in correct order..
 * Thanks

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

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years ago](https://wordpress.org/support/topic/query-post-order/#post-1511065)
 * You should be able to modify the sort using a filter, but without more detail,
   it is not possible to be specific.
 * What is your query? How would you like it sorted?
 *  Thread Starter [wireframe74](https://wordpress.org/support/users/wireframe74/)
 * (@wireframe74)
 * [16 years ago](https://wordpress.org/support/topic/query-post-order/#post-1511168)
 * Hi Here is a look at my loop..I have used the page order area within WP Cpanel
   to control order in conjunction with this from the ‘orderby’ => ‘menu_order’ 
   parameter.. Here is code:
 *     ```
       <?php // START LOOP FOR ROPLAY BALL DOWNLOADS  ?>
   
       <h2>Roplay Ball Data Sheet Downloads</h2>
       <?php
       query_posts(array('showposts' => 100, 'post_parent'=> 47, 'post_type' => 'page', 'orderby' => 'menu_order'));
       while (have_posts()) {
       the_post();
       ?>
   
       <a href="<? echo get('file'); ?>" target="_blank"><?php the_title(); ?></a><br />
   
       <?php }
   
       wp_reset_query(); //Restore Global Post data
   
       ?>
       ```
   
 *  Thread Starter [wireframe74](https://wordpress.org/support/users/wireframe74/)
 * (@wireframe74)
 * [16 years ago](https://wordpress.org/support/topic/query-post-order/#post-1511176)
 * I got it:
 * `'orderby' => 'menu_order', 'order'=>'ASC'`
 * Just added these filters to query post function..Needed the additon of ‘order’
   => ‘ASC’
 *  Thread Starter [wireframe74](https://wordpress.org/support/users/wireframe74/)
 * (@wireframe74)
 * [16 years ago](https://wordpress.org/support/topic/query-post-order/#post-1511177)
 * Thx for advice..much appreciated!
 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [16 years ago](https://wordpress.org/support/topic/query-post-order/#post-1511206)
 * Glad you got it! Now, please use the dropdown at top right to mark this topic‘
   Resolved’.

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

The topic ‘Query Post Order’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/query-post-order/#post-1511206)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
