I’m using Toolset Types to create a custom post type, and within that post type there is a taxonomy. I have created two posts with the same name, but in a different taxonomy.
For the purposes of example:
- my custom post type is called “food“
- my taxonomies are called “German” and “English“
- my post name is “sausage“
- I want two different posts, one “sausage” within the “German” taxonomy, and one “sausage” within the “English” taxonomy.
At the moment, my “German sausage” post is at the URL: sitename.com/german/sausage
.
My “English sausage” post is at the URL: sitename.com/english/sausage-2
.
Here you can see my problem: the second post with the same name has a -2
tacked on to the end of the URL. My question is, how can I remove this, so that the URL becomes sitename.com/english/sausage
? Technically, this should be possible given the fact that they are in different taxonomies.
If you can explain what needs to be done to me (I’m fairly comfortable with PHP and MySQL), I’m happy to code it myself, although of course I’ll be very grateful if you can code a fix yourself. Ideally I won’t have to use a workaround such as a rewrite rule or a new post type as well.
Thank you so much for your time and help.