Skip Navigation

[Résolu] Is there a way to out repeating fields in the same order they appear on back end

This support ticket is created Il y a 2 années. 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
- 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)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par PaulS4783 Il y a 2 années.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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.