[Plugin: Custom Post Type Permalinks] Removing prepended slug when taxonomy is registered to a speci
-
I have a unique situation. I have a custom post-type of “product” that has many custom fields worth of data attached to it. Some data only needs to display in a press section while other data only needs to display in a support section. To this end, I’ve created a custom taxonomy of “Product Type” that contains “Press” and “Support”.
With this plugin (which is SO close to what I need) I get URLs of “.com/%post_type%/%product_type%/%postname%” which outputs to “.com/product/press/product-name” or “.com/product/support/product-name”.
I need my permastructs to be “.com/%product_type%/%postname%” which would output to “.com/press/product-name” and “.com/support/product-name”.
I understand that removing the post-type from the permastruct isn’t recommended in most cases, but the “Product Type” taxonomy is registered only to the “Product” post type. So any result that is returned true by this permastruct could only return true for posts in the “Product” post-type.
Where can I edit out the slug that this plugin is prepending by default?
https://www.ads-software.com/extend/plugins/custom-post-type-permalinks/
- The topic ‘[Plugin: Custom Post Type Permalinks] Removing prepended slug when taxonomy is registered to a speci’ is closed to new replies.