【问题标题】:How to move the posts index page in Wordpress to another file rather than index.php?如何将 Wordpress 中的帖子索引页面移动到另一个文件而不是 index.php?
【发布时间】:2010-09-02 07:04:22
【问题描述】:

Wordpress 中的索引页面显示所有帖子(没有 cmets)。我想让 index.php 成为静态页面(不是博客),我已经这样做了。但我不知道如何将帖子索引移动到其他页面(比如 blog.php)。

有什么建议吗?

【问题讨论】:

    标签: wordpress


    【解决方案1】:

    创建两个新页面:“博客”和“主页”。

    在阅读设置下:将“主页”设置为静态页面,将“博客”设置为“帖子页面”。

    这使得“博客”使用 index.php。然后你必须设置一个 front-page.php 并复制 page.php 中的任何内容作为基础。现在您可以将主页编辑为常规页面或编辑 front-page.php 以更改您的主页。

    【讨论】:

      【解决方案2】:

      Dashboard/Settings/Reading,也可能制作一个页面模板,Page Templates « WordPress Codex,带有循环。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-12-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-03-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多