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

php - Create posts inside CPT post

programmeradmin0浏览0评论

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

1 Answer 1

Reset to default 0

Yes it is possible to work as above . You need to follow below points to make it work :

  1. Make custom post type name Serials.
  2. Add new custom taxonomy name serial which will be showing name of the serials
  3. Now add each episode as the post and assign the taxonomy serial name to it.

Let me know if this clears your above question.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论