Hierarchical custom post type cannot have a parent PAGE

[ad_1]

Did you make “criminology” in the “page” post type, an then the rest in whatever custom post type you registered?

Put more abstractly, are you trying to have $domain/$PageSlug/$PostTypePostSlug/ URLs? If yes, then WordPress doesn’t, or doesn’t necessarily easily allow for content type URL mashups like that. If you were to do $domain/$ParentPostTypeSlug/$ChildPostTypePostSlug/ then that should be straightforward to achieve via a hierarchical post type and setting one post to be the child of another.

Also, at least based on your examples, you’re seeing permalinks of $domain/$PostTypePostSlug when normally the post type slug is included, say if I had a post type of movie, then

Thread Starter
bmozes

(@bmozes)

I see… I thought about the first option you wrote ($domain/$PageSlug/$PostTypePostSlug/) – the one that is not allowed by wordpress.
Thanks anyway for your quick reply and detailed answer.

Tends to be best to keep content types together when it comes to the permalinks.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer