【问题标题】:How can I execute a get request in php?如何在 php 中执行获取请求?
【发布时间】:2015-01-08 20:20:25
【问题描述】:

我正在使用 WordPress 作为我的 CMS,并且我正在尝试更改帖子页面的主题。我已经在后端编辑了 html,但是我如何具体(简单来说)在 php 中为页面进行“get”调用以在我创建的页面中加载标题和特征图像?

【问题讨论】:

    标签: php html wordpress get themes


    【解决方案1】:

    要在循环中显示标题,您可以使用函数the_title。要显示特色图像,您可以使用函数the_post_thumbnail

    更多信息:

    http://codex.wordpress.org/Function_Reference/the_title http://codex.wordpress.org/Function_Reference/the_post_thumbnail

    【讨论】:

    • 谢谢,这很有帮助!
    猜你喜欢
    • 2012-09-29
    • 1970-01-01
    • 2012-09-27
    • 2021-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-19
    • 1970-01-01
    相关资源
    最近更新 更多