Home › Forums › General Issues › How do you set default values on a set of posts in bulk? › Reply To: How do you set default values on a set of posts in bulk?
You say the default values are produced as a string.. I believe they’re like this: default1, default2, default3 etc.
If you need this as an array why not simply use php explode?
$myarray = explode(', ', $default_values);
If the string does not contain a space just remove that from the first parameter of the explode 🙂
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.