admin管理员组文章数量:1431994
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
本文标签: custom post typesHow to set a CPT to have a page as a parentthen rewrite urls accordingly
版权声明:本文标题:custom post types - How to set a CPT to have a page as a parent, then rewrite urls accordingly? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745569596a2663966.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论