i’m trying to use ACF in my project; it seems good but i have a problem with filters.
I have added a Field group adding a True/False field in Post type called “Show in news”.
I have defined a new custom type called News and i need to insert a select field with
only the Post that have flagged the “Show in news”.
I cannot select them: there are no items in conditional logic because they are different
Am i doing wrong anything or is it an ACF limitation?
Thank you very much Jonathan,
your response helped me a lot.
Here is the code i’ve added in function.php and it runs fine:
function my_relationship_query( $args, $field, $post )
// filter for a specific field based on it's name
add_filter('acf/fields/relationship/query/name=related_articles', 'my_relationship_query', 10, 3);