How to use FluitoSoft WordPress Media Upload jQuery script for custom button

You must encounter times when you need the media upload functionality of wordpress.

So here we are guys.

FluitoSoft presents WordPress Media Upload jQuery Script.

This script can be used to attach a handle to a HTML element so that we can invoke the dialogue and select the files required.

See link below to download.

FluitoSoft WordPress Media Upload

See the exampe usage below to implement the dialogue in your theme or plugin.

This script requires the below list of dependencies:

('jquery', 'thickbox', 'media-upload')

 

$('.image-selector').fs_fw_media_upload(function(attachments){
$(this).parent().find('input:text').val(attachments[0].url);
},
{
'title_label' : 'Select Image',
'multi_select' : false
});

Leave a Reply