WordPress.org

Support

Support » Plugins and Hacks » Custom Post Type Permalinks » [Plugin: Custom Post Type Permalinks] Removing prepended slug when taxonomy is registered to a speci

[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?

    http://wordpress.org/extend/plugins/custom-post-type-permalinks/

Viewing 1 replies (of 1 total)
  • Did you ever figure out a way to do this? I’m currently looking into this as well. I tried setting the rewrite rule in the register_post_type call, but that didn’t work for me.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Custom Post Type Permalinks] Removing prepended slug when taxonomy is registered to a speci’ is closed to new replies.
Skip to toolbar