I use Metabox and have created a Custom Post Type.
Creating the templates etc. works without problems.
A problem occurs as soon as Polylang is installed and you change the Custom Post Type slug via the Polylang settings.
The URL of the Custom Post Type Archive is translated correctly, but all pages with the translations do not work anymore. Neither the archive page nor the custom posts (singles).
Examples:
example.com/tier/hund/ (works)
example.com/en/tier/hund/ (after installing Polylang; works too)
example.com/en/animal/dog/ (after changing the slug via Polylang Settings; doesn’t work anymore)
Hey @stabilo,
thanks for your report.
As translating slugs is a pro feature I guess you’re using Polylang Pro, right?
I tried to reproduce your setup (at least how I understand it at this point) and for me it works as expected. Am I missing something?
Would you be so kind to send some temporary credentials to help@bricksbuilder.io so I can have a look at your exact setup? Please include a link to this forum thread.
Best,
André
Thanks for the quick feedback.
I was still working on it all night and I noticed that the problem was caused by the Custom Post Type Permalinks plugin. Seems like Polylang can’t translate the URLs from this plugin.
That’s a shame, because I need the following structure for my Custom Post Types: example.com/custom-post-type/custom-taxonomy/post-name/
I can disable the Custom Post Type Permalinks plugin. However, then I need another way to modify my URL.
Hey @stabilo,
thanks for the update. You should talk to the plugin support then. Maybe it is actually possible.
However, I’ll mark this one as NO BUG.
Best,
André