Home › Forums › General Issues › Multiple values with one label with checkbox choices › Reply To: Multiple values with one label with checkbox choices
Don’t worry, I sorted it using str_split.
So I entered adaeafagaialam : Europe
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
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.