Support » Plugin: The Events Calendar » ACF Relationship field: past events only sort of work

  • Events Calendar version: 4.9.6
    ACF Pro version: 5.8.3

    I have a page template that has an ACF relationship field specifically for events from The Events Calendar. By default, future events appear just fine. Past events would not appear until I added this filter to my functions.php. So thankfully that works. And when I choose a couple of events, they move from left to right as normal and saving the page does save those events.

    https://imgur.com/NgjW3nR

    But when the page reloads, all the past events appear back on the left side whether they were selected or not.

    https://imgur.com/fUB3bld

    So past events can now be chosen, but it doesn’t show them selected on page reload, which can lead to some confusion for the user.

    Interestingly enough, if I disable The Events Calendar plugin, the events still show up in the Relationship field and show as being selected after saving and reloading. So I believe there’s something in the plugin that’s interfering with the query the Relationship field uses.

    Any ideas on how to fix this would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • ryansmiller

    (@ryansmiller)

    Hey @faeldray,

    I’m having the exact same problem. I’ve added in the filter to return all events in a relationship field, but whenever I reload the page, the events don’t seem to “stick”. This results in having to update the events every time I update the post.

    This does seem to have to do with The Events Calendar and the way it filters past events.

    Any help would be really appreciated!!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.