Support

Account

Home Forums Backend Issues (wp-admin) Adding an Image Field Programmically Reply To: Adding an Image Field Programmically

  • Sample PHP export for an image field named “test”:

    array (
    	'key' => 'field_51db3a97ed096',
    	'label' => 'test',
    	'name' => 'test',
    	'type' => 'image',
    	'save_format' => 'object',
    	'preview_size' => 'thumbnail',
    	'library' => 'all',
    ),

    I would be curious to hear about whether adding this array into your code produces an image field properly.