• Resolved Peter Berger

    (@peterpolow)


    Hello Eliot,

    Is it easy for you to add an option to set a parameter to order the images in the gallery field by name?

    See below the way I do it now, but the problem is that not all the images in the gallery field are always attached to the current post and when I delete an attached image from the gallery field, it will still be attached so it appears in the post.

    [if field="order_by_name"]
    [attached orderby="title" order="ASC"]
    <a title="[field title]" href="[field image-url]" rel="lightbox[gallery-99]">[field image size="medium" image_class="photo-thumb"]</a>
    [/attached]
    [else]
    [attached gallery]
    <a style="border: none;" title="[field title]" href="[field image-url]" rel="lightbox[gallery-99]">[field image size="medium" image_class="photo-thumb"]</a>
    [/attached]
    [/if]

    It seems that you’re very busy at the moment, but I hope you have a minute to reply.

    Thank you in advance!

    Peter

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    In the latest plugin update, I added a parameter to sort the gallery images by title:

    [attached gallery orderby="title"]
      [attached thumbnail]
    [/attached]
    Thread Starter Peter Berger

    (@peterpolow)

    Seriously! You are awesome, Eliot! You have “golden hands and brains”!

    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image order in gallery field’ is closed to new replies.