Skip Navigation

[Resolved] ordering a gallery

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Luo Yang 3 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2096177

Hi - I see I can drag and drop gallery items, but how do I order it by name? Currently I have 85 images in a gallery and I want them to order in ascending order by name.

Thanks!

#2096527

Hello,

I assume we are talking about a custom repeating image field.
There isn't such kind of built-in feature within Toolset plugins, Toolset image fields stores the image URL values, the image title are stored in another post type: WordPress built-in Media library, so you can not order the result by it's name, there isn't other better workaround, so you have to drag and drop gallery items manually

#2097065
Screen Shot 2021-06-23 at 10.23.32 AM.png

No, it's not a custom repeating field - it's this block (see attadched)

#2097081

So, if dragging and dropping is the only way, how are they ordered by default?

#2097451

The result will display as how do you drag and drop those items of repeating field.

There is a custom field "_wpcf-repeating-fields-sort-order", which stores the sort order values in a serialized array format.