Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在wordpress中获得基于缩略图的最大图像_Wordpress_Woocommerce - Fatal编程技术网

如何在wordpress中获得基于缩略图的最大图像

如何在wordpress中获得基于缩略图的最大图像,wordpress,woocommerce,Wordpress,Woocommerce,我有图像缩略图的URL访问权限。现在,我想根据URL上的缩略图获取最大的图像,但我找不到这个最大的图像 我检查了wordpress图像的大小,发现最大的图像是1024x1024。我的形象是: www.domain.com/wp content/uploads/2017-04-sample-image-370x370.jpg 我尝试将维度更改为: www.domain.com/wp content/uploads/2017-04-sample-image-1024x1024.jpg 但是,它并没有

我有图像缩略图的URL访问权限。现在,我想根据URL上的缩略图获取最大的图像,但我找不到这个最大的图像

我检查了wordpress图像的大小,发现最大的图像是1024x1024。我的形象是:

www.domain.com/wp content/uploads/2017-04-sample-image-370x370.jpg

我尝试将维度更改为:

www.domain.com/wp content/uploads/2017-04-sample-image-1024x1024.jpg

但是,它并没有像我预期的那样起作用。此外,我在产品和媒体库中搜索了图像名称,但没有找到它


有办法吗

查看
发布缩略图()。它允许您指定所需的大小:

资料来源例如:

// without parameter -> Post Thumbnail (as set by theme using set_post_thumbnail_size())
the_post_thumbnail();

the_post_thumbnail('thumbnail');       // Thumbnail (default 150px x 150px max)
the_post_thumbnail('medium');          // Medium resolution (default 300px x 300px max)
the_post_thumbnail('large');           // Large resolution (default 640px x 640px max)
the_post_thumbnail('full');            // Original image resolution (unmodified)

the_post_thumbnail( array(100,100) );  // Other resolutions