无需更改WordPress核心文件:)
只需在主题中找到the_post_thumbnail()使用函数的位置,然后将其更改为:
$title=get_the_title();
the_post_thumbnail( array(150, 150),array( 'alt' =>$title) );
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4482 次 |
| 最近记录: |