admin管理员组文章数量:1333451
We use the posts feature on our website for News. There is a News listing and you click on a headline to go to a specific news item (ie post). Now we want to add a blog and we want to use posts for this as well.
I copied the template for the news page (list page), renamed it Blog and have separated the news posts from the blog posts by use of categories. So far so good. Now I want to change some things on the actual post/blog page (ie. the specific blog page). I guess this is single.php.
My questions: 1. How do I create a copy of the "news post page" for the "blog post page"? 2. How do I select the specific template when I write a blog post?
Thanks! J
We use the posts feature on our website for News. There is a News listing and you click on a headline to go to a specific news item (ie post). Now we want to add a blog and we want to use posts for this as well.
I copied the template for the news page (list page), renamed it Blog and have separated the news posts from the blog posts by use of categories. So far so good. Now I want to change some things on the actual post/blog page (ie. the specific blog page). I guess this is single.php.
My questions: 1. How do I create a copy of the "news post page" for the "blog post page"? 2. How do I select the specific template when I write a blog post?
Thanks! J
Share Improve this question asked Jun 12, 2020 at 11:16 JayHJayH 11 Answer
Reset to default -1In wordpress you have freedom to make multiple single.php templates. Just use some tutorials for how to change single.php for custom post types. If need any editing, Let me know.
本文标签: custom post typesTwo blogs on same WP website
版权声明:本文标题:custom post types - Two blogs on same WP website 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742354056a2459063.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论