WordPress.org

Ready to get started?Download WordPress

Forums

oik-nivo-slider
[resolved] Order based on include parameter (7 posts)

  1. simpoint
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/oik-nivo-slider/

  2. bobbingwide
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    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
    which refers to
    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.

  5. bobbingwide
    Member
    Plugin Author

    Posted 1 year 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.
    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/

    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/

  6. simpoint
    Member
    Posted 1 year ago #

    Thanks a lot, works great! :)

  7. bobbingwide
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags