简体   繁体   English

在Wordpress Media Uploader(3.5)中显示图像大小

[英]Display images sizes in Wordpress Media Uploader (3.5)

This is the javascript I am using: 这是我正在使用的javascript:

    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". 一切都很好,但是除非将框架设置为“ post”,否则我似乎找不到找到图像尺寸的方法。

So the question is how to display the "Attachment Display Settings" section. 因此,问题是如何显示“附件显示设置”部分。

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. 尝试将此WordPress过滤器用于过滤器钩子image_size_names_choose ,该钩子输出可用图像尺寸的列表以供选择。

Source : http://www.limecanvas.com/adding-custom-image-sizes-to-wordpress-3-5-media-manager/ 来源: http : //www.limecanvas.com/adding-custom-image-sizes-to-wordpress-3-5-media-manager/

Once Gone through this once and found something on codecanyon.. Try the link 一旦完成一次,并在codecanyon上找到了一些东西。

http://codecanyon.net/forums/thread/wordpress-35-media-uploader-api/83117 http://codecanyon.net/forums/thread/wordpress-35-media-uploader-api/83117

might solve it 可能解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM