It returns event ID with current events but with past events it returns me nothing, none ID…
With ID, I can display event linked by acf post object title, thumbnail, etc… but without, impossible to display anything from a past event.
If I replace manually the ID variable (ex: $myfield_ID = ‘4055’;) it displays the past event.
I dont understand why it doesn’t returns me the ID, even if it’s a past event.
Any help appreciated.
I found the solution.
Instead of searching like me for hours I share it if someone has this issue too.
You just have to choose post ID instead of post object and it works like a charm.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users