I am trying to:
Show events in a place ( filtered by the place)
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:
versteckter Link ( WORKING)
versteckter 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
versteckter Link (Lieu)
versteckter 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
Hi there
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.
Thank you Nigel, you're a lifesaver.
I forgot, we erased that field....
Sorry, when I click on "My Issue is resolved"
The button "Submit" doesn't work
Can you close the ticket ?
Thanks for the update and glad that Nigel's message helped.
I'm marking this ticket as resolved and you're welcome to start a new ticket for each new question or concern.