【发布时间】:2015-01-08 20:20:25
【问题描述】:
我正在使用 WordPress 作为我的 CMS,并且我正在尝试更改帖子页面的主题。我已经在后端编辑了 html,但是我如何具体(简单来说)在 php 中为页面进行“get”调用以在我创建的页面中加载标题和特征图像?
【问题讨论】:
标签: php html wordpress get themes
我正在使用 WordPress 作为我的 CMS,并且我正在尝试更改帖子页面的主题。我已经在后端编辑了 html,但是我如何具体(简单来说)在 php 中为页面进行“get”调用以在我创建的页面中加载标题和特征图像?
【问题讨论】:
标签: php html wordpress get themes
要在循环中显示标题,您可以使用函数the_title。要显示特色图像,您可以使用函数the_post_thumbnail。
更多信息:
http://codex.wordpress.org/Function_Reference/the_title http://codex.wordpress.org/Function_Reference/the_post_thumbnail
【讨论】: