Support

Account

Forum Replies Created

  • ok i solved this issue. it’s simple and already documented in the plugin relatioship resources. i added a funtion in my funtions.php to add a new parameter to the query:

    function my_relationship_query( $args, $field, $post )
    {
        // add and define tribe events eventDisplay to 'all' since it's predifined only to future.
        $args['eventDisplay'] = 'all';
    
        return $args;
    }
    
    // acf/fields/relationship/result - filter for every field
    add_filter('acf/fields/relationship/query', 'my_relationship_query', 10, 3);
    
  • ok, i don’t how to fix this, but i at least i discovered the reason. Advanced Custom Field relationship only display the future events not the past events. Please note that this only happen when we choose to display only the post type tribe_events in the relationship field settings. There is a solution for this?

Viewing 2 posts - 1 through 2 (of 2 total)