I have created a new View (versteckter Link), in order to display Event items within related Exhibition items.
However, even without any further filter (relationship etc.) the view is displaying no results.
E.g. on this Exhibition versteckter Link There should be displayed an Event "Finissage" (versteckter Link) listed instead of the "." after the main text block (the "." is the "No posts found" placeholder)
Obviously as you can get from the Event to the linked Exhibition, the relationship *does* exist.
I cannot figure out what could prevent the Event items to be displayed. What could be wrong?
Hello,
Thank you for getting in touch.
I see that you have set an order by the custom field "From" can you set the ordering to post date and let me know if the items start showing then ?
Thanks,
Shane
Thank you Shane for the reply.
Indeed with Sort by Post Date it works, and then I set it to Sort by From again and it is still working.
I am happy that it works but still don't understand this, because to me it looks exactly the same that I did first, when it didn't work 🤔
Best wishes, Claudius
Hi Claudius,
Happy to see that is working now, however without a full investigation I'm unable to say why it stopped working.
However I do know that the post ordering will exclude posts that don't have a sortable value. So if you're sorting by the Form custom field then posts that don't have that field filled in will be removed from the results since they don't have a sortable value.
Thanks,
Shane
It is in the nature of an Event to have a start datetime (from), but it was indeed not easy to figure out which is the one "From" field belonging to the Events and not to other CPT (see screenshot) – additional info like the (unique) slug would be helpful to make sure you hit the right field. I supposed from the neighbored fields that I hit the "Event From" field 😉
Hi Claudius,
Given the nature of the fields there isn't much we can do in terms of identifying the field name.
Our views plugin will list the fields based on how the respective plugin declares them. Ofcource there will be duplicate field names but the slug is always unique.
Thanks,
Shane