Is it possible to save more than one image to an option?

Question

The following code allows you to upload multiple images but only one is saved to the option. Can multiple images be saved to the option as an array or would I have to create separate controls?

$wp_customize->add_section("slider",array(
    'title'=>"Slider",
    'description'=>"Choose the images for the slider",
    'priority'=>'36'
));

//images
$wp_customize->add_setting("slider[images]",array(
    'default'=>"",
    'type'=>"option"
));
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize,"slider[images]",array(
    'label'=>__("Images","adaptive-framework"),
    'section'=>"slider",
    'settings'=>"slider[images]"
)));
0
, Liam 10 years 2013-04-10T07:39:12-05:00 0 Answers 91 views 0

Leave an answer

Browse
Browse