Skip Navigation

[Resuelto] Use relationship field for sorting order

This support ticket is created hace 2 años. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por marcB-6 hace 2 años.

Asistido por: Minesh.

Autor
Mensajes
#2496729

Hi guys,

i have a question. I have two post types called articles and slides. In articles admin can setup a slider selecting 'slide' posts from a many to many relation. In the relation i created a relationship field called 'slide position'. It's a numeric field and i want to give admin control of the slide order using this number.

When i select 'slide position' field in the view for ordering it's resulting in an error (sorry no posts).
How to set it up correct?

Thanks!

#2497249

Minesh
Supporter

Idiomas: Inglés (English )

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

Hello. Thank you for contacting the Toolset support.

When you say:
In the relation i created a relationship field called 'slide position'. It's a numeric field and i want to give admin control of the slide order using this number.
==>
do you mean that the field 'slide position' is belongs to intermediary post type of many-to-many post relationship?

If yes, then you should have to set your view to query the intermediary post type and then display the parent/child fields accordingly as intermediary post type will have access to both parent and child posts of your many-to-many post relationship.

#2497541

Thanks Minesh, perfect support as always.
My issue is resolved now. Thank you!