最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

custom post types - Two blogs on same WP website

programmeradmin0浏览0评论

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 1
Add a comment  | 

1 Answer 1

Reset to default -1

In 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.

发布评论

评论列表(0)

  1. 暂无评论