WordPress 3.5 custom media upload for your theme options

Your going about it in a way that was unintended. Your javascript code should probably look something like this: $(‘.custom_media_upload’).click(function(e) { e.preventDefault(); var custom_uploader = wp.media({ title: ‘Custom Title’, button: { text: ‘Custom Button Text’ }, multiple: false // Set this to true to allow multiple files to be selected }) .on(‘select’, function() { var … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)