You appear to be a bot. Output may be restricted
Description
Add the custom image link using the same method as the Portfolio slideshow plugin which used the method documented here:
Usage
oik_attachment_fields_to_edit( $form_fields, $post );
Parameters
- $form_fields
- ( mixed ) required –
- $post
- ( mixed ) required –
Returns
voidSource
File name: oik/oik.phpLines:
1 to 10 of 10
function oik_attachment_fields_to_edit( $form_fields, $post) { $form_fields['bw_image_link'] = array( "label" => __( "oik custom image link URL", "oik" ), "input" => "text", "value" => get_post_meta( $post->ID, "_bw_image_link", true ) ); // This doesn't work since the url uses the [html] field instead of [value] // $form_fields['url']['value'] = get_post_meta( $post->ID, "_oik_nivo_image_link", true ); return $form_fields; }View on GitHub View on Trac