Then split the string to create a new array called – $rmcwordwidearray
Then requested that the split be every 2 characters which then gives me the country code. $rmcwordwide = get_field('rights_management_control_by_europe', $post->ID); $rmcwordwidearray = str_split($rmcwordwide,2);
It would be nice if ACF could allow separation by pipe or semicolon which then splits and turns them into an array.
I’m happy 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users