I would like to change the permalink structure to:
I used a plugin called ‘Custom Post Type Permalinks’ to add the store taxonomy to the permalink structure so it displays as:
I now need to try and remove the custom post type slug ‘coupon’ from the permalink structure.
I found some code of GitHub that removes the CPT slug but causes 404 errors when the ‘Custom Post Type Permalinks’ plugin is added. When the plugin is deactivated the CPT slug is removed and everything works perfectly. The issue is getting the two to work together. I believe that removing the plugin and adding a custom rewrite rule to the CPT may do the trick but it’s way past may level of understanding so hoping some of the experts in here might know a solution!