[Resuelto] Views + relationships not working everytime
This support ticket is created hace 1 año, 2 meses. 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
-
9:00 – 13:00
9:00 – 13:00
9:00 – 13:00
9:00 – 13:00
9: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/Karachi (GMT+05:00)
Este tema contiene 4 respuestas, tiene 3 mensajes.
I have a Content template called 'Lieu'
This template calls 2 Views
Événements filtrés par le lieu
Événements off filtrés par le lieu
With a filter "Select posts in a Lieux Evénement relationship that are related to the Post where this View is shown."
Link to a page where the issue can be seen: enlace oculto ( WORKING) enlace oculto (NOT WORKING)
I expected to see:
The events
Instead, I got:
Nothing
It works sometimes... but not all the times. The relation ship is well shown in the backoffice
Screenshot for Rue d'Oran enlace oculto (Lieu) enlace oculto 'event)
I made a copy of the site of the site for testing purposes (I'll give accès to that one ) I you need to the original site please let me know
I think the problem is that in the non-working version the View which queries the related posts is ordered by a custom field (screenshot) which the target event doesn't have a value for.
I changed the View to just order by post date, and then the expected event is shown on the front end.
It is a feature of WordPress queries (which Toolset is built upon) that if you order posts by some field, only posts with values for that field will be included in the results.