How to get the image-URL from Media-Upload in widget field

  • Author
    Posts
  • #907909

    i am creating a custom widget where i have placed thickbox media-upload to upload the images. it upload the image but i will like to insert the image url to my field url in widget when clicking insert in post button in medai-upload.

    can anybody gave me some suggestion how to do that. any comment are most welcome.

    atlast thanks for reading my toipc.
    code that i have used to upload the image in widget is
    add_thickbox();
    wp_enqueue_script('media-upload');
    $media_upload_iframe_src = "media-upload.php?type=image&widget_id=calloutbox_id1";
    $image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src");

    and the link for get the thick box is
    &TB_iframe=true" class="thickbox-image-widget">IMAGE

    The blog I need help with is kaushaldip.wordpress.com.

    #908205

    karenalma
    Staff

    I’m sorry, but that code will not work because we remove JavaScript, Flash, iframe, form, and input tags for security reasons.

    You can read more about this here:

    http://support.wordpress.com/code/

The topic ‘How to get the image-URL from Media-Upload in widget field’ is closed to new replies.