-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gets not translated slug from WPML #27
Comments
@stephenharris I think this issue is not only related to WPML, because the menu item printing ignore the CPT labels (and so any associated translation). That can be easily solved replacing menu item title with the CPT object label. Already created a branch with that fix, see here |
@Giuseppe-Mazzapica I updated the plugin, unfortunately the slug is still the wrong one. Any other idea? |
@abombelli the plugin is not updated using my code, so even if you update the plugin from this repo (or from wordpress.org) it is unchanged. You can try to use the Issue#27 brance on my fork or wait for when Stephen have time to look at it and maybe can merge. |
@Giuseppe-Mazzapica Just tried your fork, but the slug is still not the translated one who appears. |
@Giuseppe-Mazzapica Not completely tested, but it works. I added the following after line 381:
The slug has to be translated before. |
When using WPML to translate the CPT slug, the according language is not reflected in the permalink when inserting an archive menu entry.
The text was updated successfully, but these errors were encountered: