Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nicolas V. 1 year, 5 months ago.

Assisted by: Nicolas V..

Author Posts
November 5, 2024 at 1:21 pm #16366892

tomL-13

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...

Thanks a lot.

November 5, 2024 at 1:40 pm #16367012

Nicolas V.
WPML Supporter since 12/2021

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello again,

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.

Alternatively, you can edit the translated menu manually. For more on this, please refer to the "Fully Custom" section of this documentation: https://wpml.org/documentation/getting-started-guide/translating-menus/#fully-custom-create-menus-manually

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.