404 if using taxonomy on singular post
-
Hello guys,
Please, I’m dealing with this:
I’m using the permalink for a CPT prepending the taxonomy.
Just like this:
/%taxonomy%-%postname%/
But, if the taxonomy term slug contains hyphens, it gives error 404 when viewing the singular post.
For example:
404:
If the taxonomy slug isname-of-term
, so the post permalink will be/name-of-term-title-of-post/
. This causes a 404.Works:
If the taxonomy slug isnameofterm
orname_of_term
, so the post permalink will be/nameofterm-title-of-post/
or/name_of_term-title-of-post/
. This works.Any ideas?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘404 if using taxonomy on singular post’ is closed to new replies.