Reputation: 550
This is the javascript I am using:
media.frame = wp.media({
title: "Choose Image",
button: {
text: "Pick Image"
},
multiple: false
});
Everything is fine but I can't seem to find a way to display the images sizes except if I set the frame to "post".
So the question is how to display the "Attachment Display Settings" section.
Upvotes: 2
Views: 546
Reputation: 1073
Once Gone through this once and found something on codecanyon.. Try the link
http://codecanyon.net/forums/thread/wordpress-35-media-uploader-api/83117
might solve it
Upvotes: 0
Reputation: 2230
try to use this WordPress filter to the filter hook image_size_names_choose
which outputs the list of available image sizes to choose from.
Source : http://www.limecanvas.com/adding-custom-image-sizes-to-wordpress-3-5-media-manager/
Upvotes: 1