📜  the_post_thumbnail 添加类 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:37.951000             🧑  作者: Mango

代码示例1
1
2
3
if ( has_post_thumbnail() ) { 
  the_post_thumbnail('medium', array('class' => 'alignleft'));
}