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: hidden link ( WORKING) hidden link (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 hidden link (Lieu) hidden link '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.