Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter xpat

    (@xpat)

    double post

    Thread Starter xpat

    (@xpat)

    Instead of using HTML for the drop down, is it possible to do something like this? I hacked the code together from my reading, however I can’t get it to work.

    $form_fields['panorama'] = array(
    		'name' => "attachments[{$post->ID}][panorama]",
    		'id' => "attachments[{$post->ID}][panorama],
    		'label' => __('Panorama'),
    		'type' => 'select',
    		'options' => array(
    			array('name' => 'Nature', 'value' => 'nature'),
    			array('name' => 'City', 'value' => 'city'),
    			array('name' => 'Other', 'value' => 'other')
    		)
    		'helps' => __("Select type of panorama if applicable.")
    	);

Viewing 2 replies - 1 through 2 (of 2 total)