Thank you for the kind words here and in your April 10 comment in the “Thank you and question about possible future feature” topic regarding the category search in the Add Media box. I’m glad you’re finding the plugin so useful. The categories and tags capability was one of my original motivations for this project.
I had a look at your example page – great site, by the way. It looks like you’re already using [mla_gallery]
to compose the gallery. It would help if I could see the actual shortcode you’ve put together to get this gallery. I understand you have two issues: 1) how to sort the gallery entries and 2) how to change the link associated with each gallery item.
Sorting the gallery should be straightforward; just add an orderby=
parameter to the shortcode. You can find a list of the fields you can sort on (title, caption, etc.) in the Order, Orderby section on the Documentation tab of the Settings/Media Library Assistant screen. Try, for example, orderby=title
. If you’ve already added this parameter to your gallery and it’s not working, let me know.
Changing the link associated with the gallery items is also possible, and there are several possibilities. Have a look at the Gallery Display Content section and the mla_link_href
parameter. You can put a custom field in this parameter; documented in the Field-level Markup Substitution Parameters.
For example, you have a custom field called “Gallery Link URL” associated with each of the images. This field contains the full URL you want to link to, e.g., “https://www.disabilitydirectory.net.au/topics/gethelp/”. Try adding this parameter to your [mla_gallery]
shortcode:
mla_link_href="{+custom:Gallery Link URL+}"
If that’s not clear or if you have trouble with it, let me know.
Finally, I’ll admit I haven’t done much with widgets and have not tried an [mla_gallery]
inside a widget. I will do some research and experiments and post an update here when I know more.
I hope this gets you started on solving the sorting and linking issues you raised. Let me know if there’s anything more I can do to help.