Support

Account

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?

  • I’m close to a solution but unfortunately:

    $default_values = $my_get_field_object[‘default_value’]

    $default_values produces a string with no line breaks! I need the default values as an array so that I can use update_field($my_field_key, $default_values, $post->ID) to update the post.

    Suggestions?