Yup I’m researching those, but it’s over my head so it will take some time to digest.
Yes it’s from a woocomm website. They had a WOO permalink fixer plugin which corrected the URLs, but it seems more difficult to do it with CPTs.
I attempted to do it as follows:
.com/base/archive/post
.com/products/featured/this-widget-thing
.com/custom-post-type/term/post
I tried to set ‘Custom Rewrite Slugs’ as well as various combinations of ‘Rewrite With Front,’ (mostly with the / hack, which I know you don’t like) in combination with a plugin that rewrote the post URL to /%taxonomy%/%postname%/
So instead of .com/custom-post-type/postname as the out of the box default, it would be .com/custom-post-type/term/postname (term, not taxonomy)
As well as, instead of .com/taxonomy/term it would be .com/custom-post-type/term
Long story short, the goal is to have:
.com/custom-post-type/
.com/custom-post-type/term/
.com/custom-post-type/term/post
…where, all of those URLs have content. Or as a macro view of what I’m trying to accomplish, because it doesn’t necessarily have to use those specific types/tax combinations…
…ideally, WordPress would recognize them as (I hope I’m making sense on this one):
.com/archive/
.com/archive/archive/
.com/archive/archive/post
(The first archive .com/archive/archive/post will always have the same slug and will never change.)
For now I’m using a hierarchical setup on the custom post type to accomplish what I’m describing. Which of course has it’s drawbacks. But it currently looks like this:
.com/custom-post-type/parent/child
aka…
.com/archive/post/post
-
This reply was modified 2 years, 5 months ago by mapples.