如何在WordPress中自动在页面中显示页面的特色图像? [英] How to display the featured image of a page in the page itself automatically in WordPress?
本文介绍了如何在WordPress中自动在页面中显示页面的特色图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要你的帮助以下内容。
Please i need your help with the following.
我为页面设置的功能图像不会显示在页面本身中。是否有任何插件或我可以做的事情,以便让我为帖子和页面设置的特色图像显示在相应的条目中?
The features images that i am setting for my pages are not getting displayed in the pages themselves. Is there any plugin or something i can do in order to let those featured images that i am setting for posts and pages to get displayed inside the corresponding entry?
非常感谢任何建议!
推荐答案
放:
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail();
} ?>
。
这篇关于如何在WordPress中自动在页面中显示页面的特色图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文