Support

Account

Home Forums Backend Issues (wp-admin) Post object field not showing past Tribe Events Calendar events Reply To: Post object field not showing past Tribe Events Calendar events

  • My code works with current events.

    $myfield= get_field('myfield');
    $myfield_ID = $myfield->ID;
    echo $myfield_ID;
    

    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.
    Best.