![](/img/trans.png)
[英]Wordpress - How to display featured image from specific category as background?
[英]How to display post featured image under category tab in WordPress
有没有人可以帮助我找到答案,如何在“类别”选项卡下为每个帖子显示所有相关的特色图片? 我正在使用WordPress 3.9.2,这是网站链接: http : //www.thebodyshop.ie/blog/whats-hot/
谢谢,
假设您对帖子缩略图和循环内有主题支持:
echo get_the_post_thumbnail( 'thumbnail' );
参见http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.