This topic has come up many times here. A do not remember all of the specifics but there have been others that have solved this. You should take a look at some of those discussions. [Forum Search Results]
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users