Need help? Check out our Support site, then


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

  1. 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();<br /> wp_enqueue_script('media-upload');<br /> $media_upload_iframe_src = "media-upload.php?type=image&widget_id=calloutbox_id1";<br /> $image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src");<br />
    and the link for get the thick box is
    <a>&TB_iframe=true" class="thickbox-image-widget">IMAGE</a>

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

  2. 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/

Topic Closed

This topic has been closed to new replies.

About this Topic