admin管理员组文章数量:1415139
In CPT Each post host multiple posts and access them with custom URL.
Custom post type: serial
Create posts with serial title: abc, xyz, etc
Now This is what I need to create, Inside every serial (abc,xyz) I want to create posts.
Then Access theme with custom URLs
Access all serials: http://localhost/serial/
Access serial with title: http://localhost/serial/abc/
Access Episodes: http://localhost/serial/abc/episode-1 & http://localhost/serial/abc/episode-2 & http://localhost/serial/abc/episode-3
Is this possibe with wordprss?
Please guide me any soultion & recommendation will be accept. Thanks
In CPT Each post host multiple posts and access them with custom URL.
Custom post type: serial
Create posts with serial title: abc, xyz, etc
Now This is what I need to create, Inside every serial (abc,xyz) I want to create posts.
Then Access theme with custom URLs
Access all serials: http://localhost/serial/
Access serial with title: http://localhost/serial/abc/
Access Episodes: http://localhost/serial/abc/episode-1 & http://localhost/serial/abc/episode-2 & http://localhost/serial/abc/episode-3
Is this possibe with wordprss?
Please guide me any soultion & recommendation will be accept. Thanks
Share Improve this question asked Aug 21, 2019 at 6:34 F.AF.A 255 bronze badges1 Answer
Reset to default 0Yes it is possible to work as above . You need to follow below points to make it work :
- Make custom post type name Serials.
- Add new custom taxonomy name serial which will be showing name of the serials
- Now add each episode as the post and assign the taxonomy serial name to it.
Let me know if this clears your above question.
本文标签: phpCreate posts inside CPT post
版权声明:本文标题:php - Create posts inside CPT post 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745229603a2648762.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论