如何停止图像自动调整wordpress中的帖子大小?

时间:2016-02-01 11:49:15

标签: wordpress image-size

我正在尝试为我的wordpress博客添加高质量的图像,我补充说 但是,在主页上,列表页面图像的尺寸非常小 喜欢320 * 240。这是非常缩放的图像到750 * 540宽度。但在 单篇文章页面图片很好。请帮帮我

这是链接wethinkk.com

2 个答案:

答案 0 :(得分:2)

the_post_thumbnail();                  // without parameter -> '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' );            // Full resolution (original size uploaded)

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

使用您喜欢的:)

答案 1 :(得分:0)

完全取决于您在主页和循环页面上的wordpress主题中的代码。 有几种方法可以改变wordpress中图片的比例,如aq_resize()函数。检查你的代码3页,看看发生了什么,比较它们,并在所有其他地方使用你想要的代码(例如,单页中的代码是合适的,所以在其他页面中使用该代码。)