• 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 is name-of-term, so the post permalink will be /name-of-term-title-of-post/. This causes a 404.

    Works:
    If the taxonomy slug is nameofterm or name_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)
  • Thread Starter John

    (@jemoreto)

    UPDATE:

    If I choose /%taxonomy%_%postname%/ (underscore between the tags), it works.

    But I can’t use underscore in the taxonomy term slug.

    In taxonomy term I’m using the default WP hyphen on slug to separate words.

    Cheers

Viewing 1 replies (of 1 total)
  • The topic ‘404 if using taxonomy on singular post’ is closed to new replies.