Support

Account

Home Forums Backend Issues (wp-admin) Relation filed search for published posts

Solved

Relation filed search for published posts

  • I have a situation where i have a relation field. In that field i have set a post type “tribe_events” from The Events Calendar plugin.
    When i try to search for passed/published posts i get no results.

    Can this be related to ACF?

  • Here is a little fix,

    function alter_tribe_status( $args, $field, $post ){
    $args[‘suppress_filters’] = 1;
    return $args;
    }
    // filter for a specific field based on it’s key
    add_filter(‘acf/fields/relationship/query/key=field_XXXXXXXXXX’, ‘alter_tribe_status’, 10, 3);

    Listing is ok, search not fully operational.

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

The topic ‘Relation filed search for published posts’ is closed to new replies.