Saltar navegación

[Resuelto] Repeatable group order within a view

This support ticket is created 2 years, 3 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
- 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 7 respuestas, tiene 2 mensajes.

Última actualización por Minesh 2 years, 3 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2686640
Screenshot 2024-03-06 at 11.38.34.png

Hi!
I have a dynamic slider built using the legacy view (enlace oculto).

The element of the sliders are taken from a repeatable group (see screenshot attached). I'd like to order those items following the same order they have on the page. I have chosen "menu order" in the view configuration (see here:enlace oculto ) but nothing happens.

Is there a way to make the items to display on the page with the order they have on the post page?

Thank you in advance!

#2686646

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To list items as per the repeating field group items order on your view's edit page navigate to "Ordering" section and from the ordering section select drop-down select the option "Field – toolset-post-sortorder" and order to be Ascending.

I hope the above information will help you to resolve your issue.

#2686649

Hi Minesh,

thank you so much for your fast reply.

I have changed the settings and the order of the items has changed. It is not the correct one though.

The first item is correct, then the order is not the order the items have on the page. Do you know why this is happening and how to fix it?

You can see the order and the setting applied in these 3 images: enlace oculto

#2686650

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I would like to know - are those repeating field group items added using the Toolset form or only from backend?

Can you please share problem URL where you are displaying the repeating field group as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2686654

Thank you Minesh,

I have sent you all the details in the private message

#2686655

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Unfortunately - the admin access details you shared with us is not working at this end. Can you please send me working admin access details.

I have set the next reply to private which means only you and I have access to it.

#2686656

Sorry about that,

the admin details were correct ,but I forgot to update the user page after creating a new password.
Sorry for the inconvenience

#2686659

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I've set your view to display only the repeating field group "Accesorios repeatable group" which was also set to display "Autoclaves":
- enlace oculto

I've changed the "Query Filter" as given under with your above view - which was set to "ANY" relationship:

Filter by post relationship or repeatable fields group owner
Select items from the Accesorios repeatable group group that are related to the Post with ID set by the shortcode attribute relatedto.
eg. [wpv-view name="view-name" relatedto="123"]

I've set the "ordering" section to sort the field by number as you can see with the following screenshot:
- enlace oculto

I can see the correct order of repeating field group and see expected results on the frontend now:
- enlace oculto

Can you please confirm it works as expected.

#2686662

That's perfect!

Thank you very much Minesh