Understanding CPT & hierarchy – need help
-
Hello Everybody,
since we spend a helluva time of research and trying now i am closed to give up my idea and asking here is the last chance / hope we got.What we want to achieve seems to be very simple and most people we asked sayed that it is possible but we couldnt make it.
Description
If you have a post called “hello World” and this post is stored in the category “miscellaneous” you get this URL:
…tld/miscellaneous/hello-world/The Url shows “categoryname/postname” (if you have the correct permalink-settings of course)
And this behaviour i want to achive with a custom post type too, but i become desperate over trying.
What have we done:
Almost everything….
We created a fresh testinstallation
We created a new CPT called “blogbeitrag”
We created a taxonomy called “blogkategorie”
We connected this taxonomy with our CPT
We created categories in that taxonomy “blogkategorie”
We created posts from post-type “blogbeitrag”
We assigned these posts one of the categories from the taxonomy “blogkategorie”Despite that we tried so many different CPT-UI settings as i can imagine
Now we have one CPT-post called “One CPT-Post”
This post is stored in our own taxonomy-structure which goes like this:
blogkategorie/hierarchische-blogkategorieThe URL one would expect now ould be:
../blogkategorie/hierarchische-blogkategorie/one-cpt-postBut the result is always the same…
The generated URL has always this structure:
..tld/CPT-slug/postnameYou can watch it here:
http://cpt-test.4lke.de/blogbeitrag/one-cpt-post/Is anybody able to help and tell us if it is possible to work with CPZ in a hierarchical way and if yes..how this can be done?
Thanks so much in advance
The topic ‘Understanding CPT & hierarchy – need help’ is closed to new replies.