custom post types - How to set a CPT to have a page as a parent, then rewrite urls accordingly?

i have a CPT (called review) for review pages and I want to set these as children of pages i've created.right now m

i have a CPT (called review) for review pages and I want to set these as children of pages i've created.

right now my CPT slug looks like this: example/review/chewy-review

but i have a page on best dog food, and i want it to be a child of that, it should look like this: example/best-dog-food/chewy-review

any ideas how to get this done? The reason i have a CPT is so i can add special CSS and custom fields like pros and cons etc.

There's also many other pages I may want a review to be a child of, like best-dog-diapers (another page), so it will need to change url like this.

Basically i want the CPT to have a url like a page

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745569597a4633600.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信