【问题标题】:I'd like to include some content from a wordpress blog in just one section of my html page我想在我的 html 页面的一个部分中包含一些来自 wordpress 博客的内容
【发布时间】:2015-01-20 00:02:51
【问题描述】:

在静态 HTML 页面的一部分中包含 wordpress 内容的最佳方式是什么?

换句话说 - 我有一个 HTML 页面,其中有一个部分我想填充来自 wordpress 网站的内容,但我不希望或不需要整个页面成为 wordpress 页面。

【问题讨论】:

    标签: html wordpress


    【解决方案1】:

    使用 slug“静态”创建一个页面。然后将一个名为“page-static.php”的文件添加到您的模板中。将静态内容添加到该文件中,并使用http://codex.wordpress.org/Template_Tags 获取Wordpress 内容。

    【讨论】:

    • 帅哥 - 我会努力的,让你知道结果如何!谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-18
    • 1970-01-01
    • 2022-12-03
    • 1970-01-01
    相关资源
    最近更新 更多