WP Bootstrap Carousel
[resolved] Order of images (3 posts)

  1. Christine
    Posted 2 years ago #

    I tried the wiki to order the images in the slider according to the order I put them in but it does not work for me.
    Just thought I'd let you know in case this is an issue.


  2. kendallq
    Posted 2 years ago #

    Hi I saw your post and then found something that works for me. Turns out there are a lot of ways to order the images. As evidenced here;

    Link to Codex

    But I just wanted to define an order of this image and then that one etc. Here is what I did first:

    <!-- BEGIN CAROUSEL           ================================================== -->[carousel exclude="489,491,529,530,532,536,541,650,3828,3829,3869,3870" orderby ="name" interval="5000" comments="0" file="0"]
    <!-- END CAROUSEL           ================================================== -->

    I added orderby ="name"

    which you can see by the codex page I referenced orders by slug. There is a "Slug" field for each image. I simply prepended each image in that carousel with a letter (numbers aren't advisable), so the first image I wanted to show up now has a Slug starting with "a-" and the second image in order is now "b-".

    Worked like a charm for me. Hope for you too!

  3. Nico
    Posted 2 years ago #

    Well even if this is 5 month old maybe I help someone.

    If I understand

    according to the order I put them in
    correctly and this refers to the order on the media uploader of images attached to a post. You can rearrange them with drag and drop btw. Then you can use orderby="menu_order" to use that order witch is awesome. And way better then the creative but hacky solution from kendaliq above.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Bootstrap Carousel
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic