[Resolved] Is there a way to out repeating fields in the same order they appear on back end
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I understand that in order to output repeating fields it is necessary to create a View.
I have followed your 3-Step tutorial for that.
I can get it to work.
So far, so good.
The problem is how to sort the output results.
It seems like the only real sort options are:
- alphabetically on the field contents
- by date of publishing/editing the field
Ideally, I'd like to be able to output the repeating field content in the same order that it appears on the backend.
I can see that there is a drag/drop option to rearrange the order of the repeating fields on the backend.
BUT I don't see the value of that feature UNLESS we can also output the repeating field content in the same order.
I can't see anything in the Views "sort" option to accept the "default" as whatever order the fields are arranged in on the back end.
Hello. Thank you for contacting the Toolset support.
Yes, its possible. In the Sort By dropdown under the "Ordering Settings" tab on right sidebar of your view block that displays the repeating field group items, select the "Field – toolset-post-sortorder" option. Also, select the order to be Ascending.
As I specifically mentioned, I am using View in LEGACY mode.
So references to the Blocks based documentation is irrelevant.
BUT anyway, thank you for pointing to Field – toolset-post-sortorder "Ascending" as the key sort order configuration step. It works for legacy mode too, of course.