Closed picard102 closed 10 years ago
http://wordpress.stackexchange.com/questions/126658/3-8-media-upload-and-custom-meta-box?noredirect=1#comment178662_126658
The console is highlighting this area as being "Uncaught TypeError: Object # has no method 'media'". Which I assume has something to do with a change in how 3.8 handles the media uploader.
imageFrame = wp.media({ title: 'Choose Image', multiple: false, library: { type: 'image'}, button: { text: 'Use This Image' } });
So the issue here was that because I didn't have the editor or featured image that wp_enqueue_media() was never included.
If you put wp_enqueue_media() into your post type function it will work again.
http://wordpress.stackexchange.com/questions/126658/3-8-media-upload-and-custom-meta-box?noredirect=1#comment178662_126658
The console is highlighting this area as being "Uncaught TypeError: Object # has no method 'media'". Which I assume has something to do with a change in how 3.8 handles the media uploader.