I ended up using this code https://www.wpexplorer.com/remove-custom-post-type-slugs-in-wordpress/ and it worked perfectly with TranslatePress.
It would still be nice for the others that prefer using your plugin that it works with TranslatePress. https://ww.wp.xz.cn/plugins/translatepress-multilingual/
It’s not the most popular translation plugin but I think it should. Living in a bilingual area, I tried many and it is definitively the easiest of all.
@mariobeach – I’m glad the code from my guide worked for you. Awesome 😉
Plugin Author
kubiq
(@kubiq)
Hello,
this plugin is compatible with Polylang and WPML, but I’ve never used and never tested it with Translatepress.
Are you using free or paid version of that Translatepress?
Make sure that your current solution works with hierarchical URLs and parameters, etc… It’s pretty complicated to make it works also with custom rewrite endpoints, taxonomies terms in URLs, etc… but if that code snippet works for you, then good for you 😉
-
This reply was modified 2 years, 1 month ago by
kubiq.
I’m using the Pro version but it’s an additional plugin to enable pro features so the free plugin must do the same thing alone.
Plugin Author
kubiq
(@kubiq)
I’ve just tested Remove CPT base with Translatepress and everything works for me, even for hierarchical posts: https://test.kubiq.sk/sk/test-1/test-1-1/
There must be some problem in your CPT – the way how it is created or some arguments that you use in it… you can try that alternation checkbox or try to toggle with_front argument in your CPT