我在 Wordpress 中使用 Twig/Timber 调整图像大小时遇到了很大困难,这是我的代码 - 有什么我遗漏的吗?
<img src="{{ theme.path ~ '/images/dog.jpg' | resize(250) }}">
它只是输出wordpress.local/wp-content/themes/custom-theme/images/dog.jpg
而不是wordpress.local/wp-content/themes/custom-theme/images/dog-250x0.jpg
任何建议表示赞赏!