Order of images in gallery

  • Author
    Posts
  • #1129247

    mweidi92
    Member

    How can I order the images in my gallery according to date and time?

    The blog I need help with is maximaroundtheworld.wordpress.com.

    #1129413

    justjennifer
    Moderator

    What kind of Gallery are you using? The default thumbnail grid or one of the gallery “types,” i.e. circle, square or rectangle?

    #1129414

    mweidi92
    Member

    I am just using the default thumbnail gallery. No types. Thanks for your help!

    #1129415

    justjennifer
    Moderator

    Try adding this to the shortcode in the Post Editor after you insert your Gallery:
    orderby=post_date ASC"

    #1129419

    mweidi92
    Member

    it now looks like that
    [gallery ids="710,714,711,712,721,720,719,717,716,718,715,771,770,769,768,767,766,765,764,763,762,761,760,759,758,757,756,755,orderby=post_date ASC"]
    but its still not in the correct order…

    #1129420

    justjennifer
    Moderator

    Where you put the quote marks is really important. Each parameter has to be separately in quotes and I just noticed that I missed it in my previous answer (!) as well as having a space between each parameter.

    So,
    [gallery ids="710,714,711,712,721,720,719,717,716,718,715,771,770,769,768,767,766,765,764,763,762,761,760,759,758,757,756,755" orderby="post_date ASC"]

    With the addition of the “type” galleries, some of the sort orders no longer seem to work, even if you are using the default thumbnail grid, apparently. The only other thing you can try is drag and drop them in the correct order or upload them initially in the correct order (maybe by renaming them). Sorry for no further suggestions.

    #1129421

    mweidi92
    Member

    it worked!! Thank you :)

    #1129422

    justjennifer
    Moderator

    Hooray! You’re welcome and happy blogging.

The topic ‘Order of images in gallery’ is closed to new replies.