Hi,
Im using a relationship field filtering several custom post types together with Polylang.
If a translation of the post exists it is listed Ok when querying the relationship field in the admin, but I would like to query from all languages.
I’m aware of the acf/fields/relationship/query filter but I haven’t succeed to achieve what I want.
Any tips, hints?
Thanks
@nikoleg, yes, here’s a piece of code which deactivate the language filter on ACF relationship field:
add_action('wp_ajax_acf/fields/relationship/query', function () {
if (function_exists('PLL')) {
remove_action('parse_query', array(PLL()->filters_post, 'parse_query'));
}
});