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

    (@websmithintl)

    jQuery(document).ready(function() {
    
    jQuery('#upload_image_button').click(function() {
    											  window.send_to_editor = function(html) {
     imgurl = jQuery('img',html).attr('src');
     jQuery('#upload_image').val(imgurl);
     tb_remove();
    
    }
    
     tb_show('', 'media-upload.php?post_id=1&type=image&TB_iframe=true');
     return false;
    });
    
    });

    and the php is :

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter websmithintl

    (@websmithintl)

    I’m a total noob… just click File URL instead of Post URL in the upload dialog…

    idiot…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images upload to correct folder, but the link in wordpress is incorrect’ is closed to new replies.