• Resolved DiabloPB

    (@diablopb)


    Hello,

    the flickr sorting does not work. I want sort my flickr fotos by date posted. If i try ascending or descending, it always starts and stays with the first photo from 2014. But i want to show the last photo first from 2020.

    The options in wordpress are:

    [gallery type='flickr' view='photosets' photoset_id='72157636096712656' user_id='29997388@N05' sort='date-posted-desc' title_position='none' caption='none' media='photos' layout='random' columns='auto' thumb_size='q']

    Remember, if i change sort=’date-posted-desc’ to sort=’date-posted-asc’ it has no effect.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Sorting is not supported in the Flickr API while fetching photos from an album (https://www.flickr.com/services/api/flickr.photosets.getPhotos.html). The sorting only works if you are pulling directly from your photo-stream (https://www.flickr.com/services/api/flickr.photos.search.html).

    I also notice that you have an unrelated JavaScript error on your page, presumably because you have tried to minify all your scripts – this error is coming from one of your other plugins.

    That being said, even after you fix the error things will not work because you have tried to cache / minify Photonic’s scripts. Photonic’s scripts are already minified, and are included in a slightly different manner – there are 2 scripts included, one with a type='module' directive, and the other with a nomodule directive. Your browser is smart enough to figure out which one to use. But when you use another plugin to combine scripts, you end up duplicating Photonic’s scripts. So, you will need to exclude Photonic’s JS from your “wpfc” caching plugin.

Viewing 1 replies (of 1 total)

The topic ‘flickr sorting (asc/desc) does not work’ is closed to new replies.