image_link_input_fields example

'input' => 'html',
            'html'  => wp_caption_input_textarea( $edit_post ),
        ),
        'post_content' => array(
            'label' => __( 'Description' ),
            'value' => $edit_post->post_content,
            'input' => 'textarea',
        ),
        'url'          => array(
            'label' => __( 'Link URL' ),
            'input' => 'html',
            'html'  => image_link_input_fields( $postget_option( 'image_default_link_type' ) ),
            'helps' => __( 'Enter a link URL or click above for presets.' ),
        ),
        'menu_order'   => array(
            'label' => __( 'Order' ),
            'value' => $edit_post->menu_order,
        ),
        'image_url'    => array(
            'label' => __( 'File URL' ),
            'input' => 'html',
            'html'  => "<input type='text' class='text urlfield' readonly='readonly' name='attachments[$post->ID][url]' value='" . esc_attr( $image_url ) . "' /><br />",
            'value' => wp_get_attachment_url( $post->ID ),
            
Home | Imprint | This part of the site doesn't use cookies.