Skip Navigation

[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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by PaulS4783 2 years ago.

Assisted by: Minesh.

Author
Posts
#2498773

I am using Types and Views (in LEGACY mode).

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.

Am I missing something? Is there a workaround?

#2498839

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

Can you please check the following Doc and navigate to the section "Displaying Repeatable Field Groups in Custom Order":
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/

#2499017

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.