Skip Navigation

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
- 12:00 – 16:00 10:00 – 14:00 10:00 – 14:00 9:00 – 13:00 9:00 – 13:00 -
- 17:00 – 21:00 15:00 – 19:00 15:00 – 19:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Bucharest (GMT+02:00)

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by ericS-63 2 days, 7 hours ago.

Assisted by: Mihai Apetrei.

Author Posts
February 27, 2025 at 10:22 am #16755144

ericS-63

Hi,

I successfully installed WPML Media Translation, but I have a related follow-up question:

If I add a button with a link to a PDF on the English version of my site and then translate that PDF to another version for a different language, the button still points to the original (EN) PDF instead of the translated one. The link does not update automatically when switching languages.

Is this expected behavior, or is there a setting that ensures the button dynamically links to the translated PDF?

Thanks for your help!

February 27, 2025 at 10:24 am #16755149

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there,

That’s a great question! What’s happening here is that WPML doesn’t automatically replace media file links inside buttons or content, even if a translated version of the file exists. The reason is that links are treated as static content, so unless they’re specifically translated, they will continue pointing to the original file.

That being said, we can definitely make this work. You can manually update the link in the translated button version, ensuring it points to the correct PDF for that language. If the button is added through the WordPress block editor or a page builder, it should be possible to edit the translated version and update the link accordingly.

Looking forward to hearing how it goes.

Mihai Apetrei

February 27, 2025 at 10:19 pm #16758377

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Regarding your reply from the other ticket, can you please let me know what do you mean by: "breaks the WPML Translation Editor mode"?

If you can share a screen recording or some screenshots or explain a bit more, that would help me better understand what you are experiencing.

Thank you.

February 28, 2025 at 2:04 pm #16761152

ericS-63

Yes, please look at this rather long video:
hidden link

February 28, 2025 at 2:09 pm #16761161

ericS-63

Ps. Oh, and I look at the video myself and I think I missed to press "Complete translation" in the end that why the sync was of I guess.

But anyway - is this the only way for to edit the PDF-links or is there a better way to do it - Maybe a another setup with ACF or so?

February 28, 2025 at 8:26 pm #16762724

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hello and welcome back!

WPML offers this feature, but I'm unsure whether it will support PDF links.

You can definitely run a test, and please let me know how it goes. I'm curious to see if it would be a viable alternative for your needs in this situation.

March 1, 2025 at 6:41 am #16763285

ericS-63

Hi!

It doesn’t seem to work, even after switching the ACF settings to expert mode and making all fields translatable—it still doesn’t show up in the editor.

Is switching back and forth the only solution, or do you have any other suggestions?

pdf.png
not showing.png