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

how to stop images auto resizing for posts in wordpress?

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

这是linkwethinkk.com

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

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

使用你喜欢的那个:)