• Resolved freelylw

    (@freelylw)


    1: I have created a custom post type call “Submit”
    2: I created a custom taxonomy call “categories” for this post type.
    3: My wp defaul permalinks setting is /%category%/%postname%/

    so my new post permalink should looks like https://www.abc.com/categories/postname
    BUT, my post permalinks looks like this now https://www.abc.com/submit/postname

    Its using the post type name instead of the taxonomy name on the permalink, please advise if this is normal for CPTUI or its wrong. please advise, Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The permalinks are working the way I would expect and assume they would. The first example is going to be showing your term archive for a given term. The second example is going to be showing the given post in the submit post type.

    I don’t have an answer for how to mix the two together successfully, to be honest. It’s not that you’re doing something necessarily wrong, just that you’re mixing two types of rewrite rules together into one.

    Thread Starter freelylw

    (@freelylw)

    Hi, seems my question was not clear, I do not want to mix 2 types of permalinks.

    What I want is simple, I need my custom post type permalinks looks like : https://www.abc.com/taxonomy/postname

    But, it looks like this now :
    https://www.abc.com/post-type-name/postname

    My wp defaul permalinks setting is /%category%/%postname%/, please advise, thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I suspect it may be possible, but I don’t know how easily, to get /taxonomy/postname/ working. The biggest thing is going to be telling WordPress that whatever postname is, is from post-type-name and not a term in taxonomy, like it very likely will interpret at first.

    Said out loud, it definitely sounds simple, but actually achieving is a different story. CPTUI also doesn’t have functionality around permalink customization like this, so even I would need to do some googling/trial+error to attempt achieving this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘category permalink showing post type name’ is closed to new replies.