Title: Custom ordering
Last modified: August 31, 2016

---

# Custom ordering

 *  [pavegraphics](https://wordpress.org/support/users/pavegraphics/)
 * (@pavegraphics)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-ordering-1/)
 * Hi, Not sure if this has been asked before but I would like to display 3 pages
   in a specific order using the carousel, is this possible?
 * post_type=”page” all_items=”0″ show_only=”id” posts=”179,176,894″ ordering=”???”
   categories=””
 * Many thanks for a great product!
 * [https://wordpress.org/plugins/wp-posts-carousel/](https://wordpress.org/plugins/wp-posts-carousel/)

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

 *  Plugin Author [teastudio.pl](https://wordpress.org/support/users/teastudiopl/)
 * (@teastudiopl)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-ordering-1/#post-7014509)
 * this is correct:
 *     ```
       ..
       post_type="page" all_items="3" show_only="id" posts="179,176,894" ordering="asc"
       ..
       ```
   
 *  Thread Starter [pavegraphics](https://wordpress.org/support/users/pavegraphics/)
 * (@pavegraphics)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-ordering-1/#post-7014538)
 * Sorry I wasn’t clear, I require them in the order 179, 176, 894. I think asc 
   orders them lowest to highest? 176, 179, 894
 *  Plugin Author [teastudio.pl](https://wordpress.org/support/users/teastudiopl/)
 * (@teastudiopl)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-ordering-1/#post-7014588)
 * so, you can do this only by using a filter “wpc_query” to clear the query params;
 * try this:
 *     ```
       function my_wpc_query( $query_args ) {
              unset($query_args['orderby']);
              unset($query_args['order']);
              return $query_args;
       }
       add_filter('wpc_query', 'my_wpc_query', 1, 1);
       ```
   
 * and let me know.
 *  Thread Starter [pavegraphics](https://wordpress.org/support/users/pavegraphics/)
 * (@pavegraphics)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-ordering-1/#post-7014827)
 * Hi,
    Just got round to updating this bit… I’m really sorry I don’t quite get 
   what I’m supposed to do here, can you help a bit more? I added the above code
   in full to my themes functions.php file but not quite sure what to do next as
   I don’t understand filters and query params… Thanks so much for your help, I 
   know it’s a petty request!
 *  Thread Starter [pavegraphics](https://wordpress.org/support/users/pavegraphics/)
 * (@pavegraphics)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-ordering-1/#post-7014833)
 * Sorry another request on this front – I have used the Carousel on the site for
   other pages, it seems this function breaks the ordering I had set up on those(
   i had left ‘ordering’ blank so they were ordered by the ordering on the ‘Pages’
   post list) 🙁
    As a feature request maybe there could be more order filters built
   in?

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

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

 * ![](https://ps.w.org/wp-posts-carousel/assets/icon-128x128.png?rev=1154352)
 * [WP Posts Carousel](https://wordpress.org/plugins/wp-posts-carousel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-posts-carousel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-posts-carousel/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-posts-carousel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-posts-carousel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-posts-carousel/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [order](https://wordpress.org/support/topic-tag/order/)

 * 5 replies
 * 2 participants
 * Last reply from: [pavegraphics](https://wordpress.org/support/users/pavegraphics/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/custom-ordering-1/#post-7014833)
 * Status: not resolved