Support

Account

Home Forums Backend Issues (wp-admin) ACF load_value to Gallery Field Reply To: ACF load_value to Gallery Field

  • It appears that the slider stores the value in JSON.

    Something like this might work

    
    // in your filter after getting the value from the db
    $value = array();
    $slider = json_decode($slider_data, true);
    if ($slider) {
      foreach ($slder as $slide) {
        $value[] = $slide['image']['attachment_id'];
      }
    }
    return $value