Hierarchical Custom Post Type
-
Hi,
First of all, thanks for this great plugin! As mentioned by Shaliza other plugins won’t let you remove the cpt_slug and there are so many forum topics on the subject and each answer gives you a different code to try… that was very confusing!
So, here is my problem:
I have 3 CPT, here are my permalink settings with your plugin:CPT1 : /%postname%/
CPT2 : /%category%/%postname%/
CPT3 : /%category%/%postname%/CPT2andCPT3are working fine,CPT1gives me 404 pages.
I tried to setCPT1to/%category%/%postname%/to make sure that the structure wasn’t the issue. I still have 404.All CPT have been created under the same fucntion, with a similar code, the rewrite attribute is set up as following:
'rewrite' => array( 'slug' => 'cpt_name', 'with_front' => false) ,In fact, the only difference is that
CPT1is hierarchical. So before I use the plugin urls for this post type were like that:
domain.com/cpt1/page1/subpage2
wheresubpage2is a child ofpage1Any idea where the problem is coming from? Thanks
The topic ‘Hierarchical Custom Post Type’ is closed to new replies.