Image order in gallery field
-
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://www.ads-software.com/plugins/custom-content-shortcode/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Image order in gallery field’ is closed to new replies.