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%/CPT2
andCPT3
are working fine,CPT1
gives me 404 pages.
I tried to setCPT1
to/%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
CPT1
is hierarchical. So before I use the plugin urls for this post type were like that:
domain.com/cpt1/page1/subpage2
wheresubpage2
is a child ofpage1
Any idea where the problem is coming from? Thanks
https://www.ads-software.com/extend/plugins/wp-permastructure/
- The topic ‘Hierarchical Custom Post Type’ is closed to new replies.