WordPress cms 和博客具有相同的站点,如何编码博客的索引页
我正在使用 WordPress 编写一个 cms 网站,该网站也有一个博客部分。
该网站之前在 /blog 上有一个博客部分,由 wordpress 提供支持,以及一堆静态页面。现在他们想将整个网站转换为 WordPress。
基本上我所做的是制作一些“页面”,并将网站的索引页面设置为这些静态“页面”之一。显然博客部分需要成为此 WordPress 安装的一部分。
现在我想知道如何呈现博客的索引页面,因为“cms”部分已采用index.php?
谢谢
i am coding up a cms site which also has a blog section by using wordpress.
the website previous had a blog section at /blog, which powered by wordpress, and a bunch of static pages. now they want to convert entire site to wordpress.
basically what i did is making a handful of "page"s , and set the website's index page as one of these static "page". apparently the blog section need to be part of this wordpress installation.
now i am wondering how do i render the index page of the blog as index.php has been taken for the "cms" part?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题不是很清楚 - 但“主页”页面和“博客”页面有两个选项。您设置了主页,然后可以将另一个页面设置为博客索引。
当然,您将需要该页面的页面模板,以便它检索最新的博客条目。
Your question isn't very clear - but there are two options for "home" page and "blog" page. Home page you have set, you can then set another page as the blog index.
Of course you will need a page template for that page so that it retrieves the latest blog entries.