2

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.

Zhivko
  • 550
  • 4
  • 16

2 Answers2

1

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/

Ajith R Nair
  • 2,170
  • 1
  • 15
  • 10
  • 1
    No, doesn't seem to do the job. I want to display the default sizes, not to make modifications. – Zhivko Feb 16 '14 at 09:06
0

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

anstrangel0ver
  • 1,073
  • 8
  • 17