@toro_unit :
please see this which explains the issue with the plugin / rewrites
https://github.com/torounit/custom-post-type-permalinks/issues/85#issuecomment-364580446
I’ll add the comment here too, but there’s a screenshot over on the github link above
My CPT = kitchen
, my custom rewrite slug for that is fitted-kitchens
My taxonomy is kitchen_category
, my custom rewrite slug for that is style
with this option ticked Use custom permalink of custom taxonomy archive
:
this URL works:
https://localhost/kitchen/style/modern
this URL does not work, and gives a 404:
https://localhost/fitted-kitchens/style/modern
you can see that the plugin is not processing the URL for the CPT rewrite slug properly
however for the first URL without the rewrite slug you can see that Yoast is picking up the URL that it should be using
<link rel="canonical" href="https://localhost/fitted-kitchens/style/modern" />
so somehow your plugin is not dealing with the custom slug, and hence the 404.
thanks
J
again my workaround at the moment is to untick Use custom permalink of custom taxonomy archive
and give my taxonomy a custom rewrite slug of fitted-kitchens/style
instead of just style
. ie I have to include the custom post type custom rewrite slug at the beginning of my taxonomy custom rewrite slug
this of course is a problem if 2 CPT’s need to share the same taxonomy.
-
This reply was modified 6 years, 9 months ago by jmp909.