• Resolved leoro123

    (@leoro123)


    So, the past week I’ve been trying to rewrite a custom slug without any success. I am using CPT UI. The problem is that a rewrite for a custom post type where a custom taxonomy is included does not get recognized.

    I am using the exact same custom post type/taxonomy settings from another website on this website, but on this one it doesn’t work.

    • The name of the custom post type is: ‘machines’ – the rewrite of this custom post type is set to: “machines/%machinemerk%”
    • The name of the custom taxonomy is: ‘machinemerk’ – the rewrite of this custom taxonomy is set to: ‘machines’

    The URL structure I am looking for when viewing a product: http://www.example.com/machines/machinemerk/%5Bname_of_product%5D/

    The result I am getting when viewing a product: http://www.example.com/machines/%machinemerk%/%5Bname_of_product%5D/

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

    (@tw2113)

    The BenchPresser

    I’m curious if https://ww.wp.xz.cn/plugins/permalink-manager/ would be a good fit for this. CPTUI doesn’t do anything unique/special at all with regards to customized permalinks, outside of provide fields that are meant for the single portion of the permalink. Meaning say “simple-machine” for a “machine” post type, but it wouldn’t also be meant for other portions of the URL to be parsed out.

    I know that method has worked for some in the past but that’s not a method we formally recommend.

Viewing 1 replies (of 1 total)

The topic ‘Custom taxonomy rewrite does not get recognized’ is closed to new replies.