Title: Order based on include parameter
Last modified: August 21, 2016

---

# Order based on include parameter

 *  Resolved [simpoint](https://wordpress.org/support/users/simpoint/)
 * (@simpoint)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/order-based-on-include-parameter/)
 * Is there any posibility how to order included image in order defined in include
   parameter?
 * For example:
    [nivo post_parent=7 include=1,5,2,4] I wanna have in order 1->5-
   >2->4. [nivo post_parent=7 include=5,2,3,4] I wanna have in order 5->2->3->4.[
   nivo post_parent=7 include=4,1,5,2] I wanna have in order 4->1->5->2.
 * [http://wordpress.org/extend/plugins/oik-nivo-slider/](http://wordpress.org/extend/plugins/oik-nivo-slider/)

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

 *  Plugin Author [bobbingwide](https://wordpress.org/support/users/bobbingwide/)
 * (@bobbingwide)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/order-based-on-include-parameter/#post-3657114)
 * Hi simpoint. No, not at present. Do you really want to include the slider 3 times
   in one post? If not, have you tried orderby=menu_order?
 * See [http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/wordpress-plugins/oik-nivo-slider/nivo-slider-defined-slide-order/](http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/wordpress-plugins/oik-nivo-slider/nivo-slider-defined-slide-order/)
 *  Thread Starter [simpoint](https://wordpress.org/support/users/simpoint/)
 * (@simpoint)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/order-based-on-include-parameter/#post-3657115)
 * Hi, thank you for your answer. But unfortunately, I want display the same image
   in more pages without uploading twice. So I use parameter post_parent, but I 
   want display them in different order and thats the problem.
 * I can use orderby=menu_order, but it helps only for one more page where I want
   display different order.
 *  Plugin Author [bobbingwide](https://wordpress.org/support/users/bobbingwide/)
 * (@bobbingwide)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/order-based-on-include-parameter/#post-3657142)
 * Hi, I did a search and found an answer in
    [http://wordpress.stackexchange.com/questions/11055/how-to-return-results-of-a-get-posts-in-explicitly-defined-order](http://wordpress.stackexchange.com/questions/11055/how-to-return-results-of-a-get-posts-in-explicitly-defined-order)
   which refers to [http://core.trac.wordpress.org/ticket/13729](http://core.trac.wordpress.org/ticket/13729)
 * I tried using the post__in method but it doesn’t work yet.
    I’ll need to look
   at the code.
 * In the mean time, I assume you have uploaded the images multiple times. Just 
   like I’ve had to do, more times than I wanted.
 *  Plugin Author [bobbingwide](https://wordpress.org/support/users/bobbingwide/)
 * (@bobbingwide)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/order-based-on-include-parameter/#post-3657191)
 * Hi, oik version 2.1-alpha.0701 now provides support for this.
 * You simply use the id= parameter specifying the post IDs of the attachments to
   display and the order to display them in.
    e.g. [nivo id=1,5,2,4] [nivo id=5,2,3,4]
 * See [http://oik-plugins.co.uk/oik-nivo-slider-displaying-selected-posts-in-a-particular-order/](http://oik-plugins.co.uk/oik-nivo-slider-displaying-selected-posts-in-a-particular-order/)
 * To update to this version use oik options > Plugins.
    [http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/oik-base-plugin/oik-options/oik-options-plugins/](http://www.oik-plugins.com/wordpress-plugins-from-oik-plugins/oik-base-plugin/oik-options/oik-options-plugins/)
 *  Thread Starter [simpoint](https://wordpress.org/support/users/simpoint/)
 * (@simpoint)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/order-based-on-include-parameter/#post-3657202)
 * Thanks a lot, works great! 🙂
 *  Plugin Author [bobbingwide](https://wordpress.org/support/users/bobbingwide/)
 * (@bobbingwide)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/order-based-on-include-parameter/#post-3657203)
 * oh good. there’ll be a few more iterations of oik v2.1 before it’s officially
   published on wordpress.org

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

The topic ‘Order based on include parameter’ is closed to new replies.

 * ![](https://ps.w.org/oik-nivo-slider/assets/icon-256x256.png?rev=973916)
 * [oik-nivo-slider](https://wordpress.org/plugins/oik-nivo-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oik-nivo-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oik-nivo-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/oik-nivo-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oik-nivo-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oik-nivo-slider/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [bobbingwide](https://wordpress.org/support/users/bobbingwide/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/order-based-on-include-parameter/#post-3657203)
 * Status: resolved