[resolved] Order based on include parameter (7 posts)

  1. simpoint
    Posted 2 years ago #

    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.


  2. bobbingwide
    Plugin Author

    Posted 2 years ago #

    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/

  3. simpoint
    Posted 2 years ago #

    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.

  4. bobbingwide
    Plugin Author

    Posted 2 years ago #

    Hi, I did a search and found an answer in
    which refers to

    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.

  5. bobbingwide
    Plugin Author

    Posted 2 years ago #

    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.
    [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/

    To update to this version use oik options > Plugins.

  6. simpoint
    Posted 2 years ago #

    Thanks a lot, works great! :)

  7. bobbingwide
    Plugin Author

    Posted 2 years ago #

    oh good. there'll be a few more iterations of oik v2.1 before it's officially published on wordpress.org

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • oik-nivo-slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic