Custom Post Type Permalinks
Removing prepended slug when taxonomy is registered to a speci (2 posts)

  1. thatFunkymunkey
    Posted 3 years ago #

    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?


  2. ccschmitz
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type Permalinks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic