I have a problem, I have 4 different custom post types
And the structure is about like that
will work in a similar way
example.com/client-area/readymade/cushions/velvet-touch/z93 <- this will be a readymade_private CPT, the link will be created from client-area / readymade /% category% /% postname%, so cushions and velvet Touch are categories, Velvet-Touch is a sub category of pillows
example.com/client-area/readymade/cushions/velvet-touch/ <-an archive with a list of pages with the velvet-touch category that also belong to the CPT readymade_private, as the categories are shared with readymade_public.
example.com/client-area/readymade/cushions/ <- an archive with a list of all subcategories of pillows
example.com/client-area/readymade/ <- This will be a page, since readymade will only have cushions and tabletops, so I can do this with a static page
Keep in mind that this structure will be repeated, but without client scope and with the CPM of readymade_public, since everything will be private, but in public there will be a selection of duplicates of private (I do that with templates and acf When I create a public page, I only have one field in which I select the private equivalent and get the data from there, I know that this is a bit strange, but it has to be yes or yes with that structure.
There are also collections that work like Readymade, but for example have a jump less
example.com/client-area/collections/decoration/sevilla <- that would be collections_private and decoration is the% category%. In this case, there are no subcategories, but there are also duplicates without the client area that uses collection_public's CPT
What is the right way to create this structure? I mean, like the "list" archive pages that differentiate between CPT and even one that lists its own subcategories, I remember that I do not use a custom taxonomy by using the category taxonomy and adding it to the permalinks of CPT by I use the custom post type Permalinks plugin
I already have the permalink for the CPT of each category, and I even have a template that would loop the list of CPTs if you give them a CPT name and a category ID