Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » nextgen gallery custom sort order not working

  • Resolved shane_idc

    (@shane_idc)


    I thought selecting custom sort order would mean that if I then select [date/time] and [ascending] in [manage gallery] the order would show viewers newest to oldest. This works when just done but every subsequent time I add images lets say to the ‘Be Free’ folder for example, the new pictures end up at the bottom, 250 + images away from being first like they should. I cant [sort gallery] after every time I upload new pics! Thats ridiculous and tedious! I have over 1200 galleries, prob 35000+ pics!

    If I am adding and exhibition or abandoned set of images, I usually never add more so the gallery is ordered as named, you go through the images as you would attending the event or place. For the artist galleries – constantly being added to I need the newest to be seen first – [custom] sort order is meant to do this – but doesnt.

    I tried shortcode ages ago and it didnt help. And im not going to go back and add code to every single page especially if its so intermittent or non functioning.

    Have you got a ‘sort by category’ feature yet? I asked this years ago so I assume it would have happened by now…? Then I could know that every ‘artists’ category page would be sorted properly.

    What do I do? my site is allthoseshapes.com

    • This topic was modified 2 years, 3 months ago by  shane_idc.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author photocrati

    (@photocrati)

    @shane_idc – Although I can appreciate you are not getting what you are expecting what you are seeing is actually what should be happening based on the logic being used in the code, especially since the underlying premise behind inserted display is they remain the same regardless of what happens outside of their specific rendering.

    In this case, adding images to an existing gallery that is used in a specific display will by default add those images to the end of the previously displayed images of the gallery as expected. To have the new images inserted according to the sort order one would have to resort the inserted display itself as it is preserving the last settings used for it as it is designed to do.

    As to a “sort by category” idea, we do not specifically have categories for images and as such that would need to be built before an option to sort by that criteria could be added. We’re always open to Feature Requests, especially ideas that enhance the plugin in general, please feel free to share your thoughts and ideas on how “categories” could be implemented here: https://imaely.com/feature-voting/

    Thanks!

    – Cais.

    sorry thats not very helpful. I have read http://www.zeyalabs.ch/posts/2014/displaying-random-nextgen-gallery-images/ and a couple of others (sorry cant find links) trying to use functions.php etc to flush nggallery cache before every page load which sounds like a good idea (didnt work yet tho) – how can I do this? Please tell me a way I can actully make your plugin work like it should. Sort [Ascending] , [order by date] should mean just that, not that every time you add photos this order will make no sense becuase that latest photos will be added to the bottom of your already custom sorted order…
    Please think of a solution, whatever hack works is fine.

    • This reply was modified 2 years, 3 months ago by  shane_idc.
    • This reply was modified 2 years, 3 months ago by  shane_idc.
    Plugin Author photocrati

    (@photocrati)

    @shane_idc – As noted earlier, the best and easiest method to correct this is to edit those instances of inserted displays that are using these galleries you are adding images to and insure their sort order is matching what you want.

    Thanks!

    – Cais.

    Hi Cais,

    how though? using the shortcode doesnt work! I am using NGGallery in conjuntion with justified image grid – i have tried all combos of sort orders and shortcodes. I even went back to [custom] [ascending] and then would have to manage the exhibition photo galleries manually – but even this didnt work! – the order was then broken into strange blocks of ascending and descending.

    You must know a hack/work around for my simple request?
    – NGGallery is currently [custom] [descending] -so ‘exhibition’ pics display in the order you would see them at the (real world) gallery.
    – All the artist galleries were sorted again, manually over 700!!!! to [date/time][ascending] but every time i add new photos they end up 200+pics (or whatever away from the viewer)

    Cant the sort order be forced ( [date/time][ascending] ) every time someone visits that page? It must be easy to do.

    Maybe there is a way to auto-scan the folders every time the page is loaded and calls that particular gallery?

    I cant be the first or even second person to ask about this, please help…

    Plugin Author photocrati

    (@photocrati)

    @shane_idc – If you are using a third-party plugin (Justified Image Grid) to insert your displays we would not be able to provide support for it’s functionality, that would be best done by its author.

    Have you tried using NextGEN Gallery on its own for this although you will still need to re-sort the specific inserted display(s) using the gallery you are adding images to … in most cases, this is most easily done by processing through the following:

    – add images to gallery
    – check to insure the gallery is using the expected sort order you want
    – edit the existing inserted display
    — either re-sort the display here, or
    — remove the inserted display and then re-insert it after the gallery sort has been confirmed.

    Please keep in mind, there are various caching plugins/services that might interfere with this immediately appearing on the front-facing views including in many cases the requirement you clear the NextGEN Gallery image cache under Gallery > Other Options > Miscellaneous.

    Thanks!

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘nextgen gallery custom sort order not working’ is closed to new replies.