Reorder slides

wildmintmedia's Avatar


11 Nov, 2021 06:47 PM

I'm using the Royalslider plugin to create a photo slideshow on a client's site. They regularly add new photos to include in the slideshow, and we would like them to show in order of the newest first. How can we achieve that? From what I can see, we would have to drag each photo to reorder them, which would be time consuming to do each time new photos are added. Hoping there is a way to order them all by date descending.
Thank you,

  1. Support Staff 1 Posted by Dmitry Semenov on 12 Nov, 2021 08:46 AM

    Dmitry Semenov's Avatar


    You may override the default WordPress gallery shortcode, which I think has such option.

    Or if you have PHP knowledge you may use new_rs_slides_filter to reorder slides dynamically, for example:

    function rs_custom_order_slides($slides, $options, $type) {
        // reoder $slides here
        return $slides;
    add_filter('new_rs_slides_filter', 'rs_custom_order_slides', 10, 3);

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac