Hi,
I succeded solve this issue, but the more complicated one is the Custom Link.
So in the default language I have a menu, in the menu I have a custom link.
I went into String Translations and I translated the specific menu item... something like: "menu item 555" something like that,
But still, I dont see the translated value on the second language...
Im using:
get_the_title(apply_filters('wpml_object_id', (int)$item->object_id, 'nav_menu_item'));
or
$item->title
to get the item label but I it still gives me in the defualt language...
Custom codes aren't covered under our support policy but I’d be happy to provide some guidance here.
If you’re working with a custom link in a WordPress menu, you can indeed translate it in "WPML > String Translation", as you mentioned. Be sure to translate both the label and the URL.
If you’re using custom code to add a link to your menu, I’d need to review the entire code snippet to understand how it functions. For this, could you please provide me with a temporary admin access (wp-admin and FTP) – preferably to a staging copy where the issue has been replicated – so I can further investigate. I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.
IMPORTANT:
- Before we proceed, please backup your site and database.
- Please share all relevant details about the code (such as the file where it’s added).
- FTP access is necessary as I may need to modify your custom code.
The topic ‘[Closed] Split: Custom Link is not being translated & ACF text field as well’ is closed to new replies.