It will only work with posts, not taxonomies. Did you edit the field keys to match the relationship fields that you’re trying to connect? The code that I created will only work on one set of relationships. You’d need to create a new filter for every set of relationships that you want to use it for.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users