Spotify embedding failure in WPML

Posted in: Newspaper
Post count: 18

Hi. I’m using the latest WPML plugin and Newspaper X. I added some Spotify links in my post in my default language and worked perfectly fine. But when I translated the post with WPML’s editor (I just copy the original content the “translated” version), some embedding attempts failed and turned out to be pure text.

For instance, if I wanted to embed a Spotify playlist, I just copied the link in Gutenberg. The HTML code of the post would be:
<p>https://open.spotify.com/user/user_id/playlist/playlist_id</p>
But I wanted it to be center aligned, so I modified it to:
<p align="center">https://open.spotify.com/user/user_id/playlist/playlist_id</p>
And Gutenberg would convert it to iframe automatically. The above worked perfectly fine in the default language version.

After translation, the source codes of all my posts looked the same. However, some of my posts worked fine, while others turned out to like this instead of iframe when I open it in Chrome:
<p align="center">https://open.spotify.com/user/user_id/playlist/playlist_id</p>

I’m totally confused and can’t figure out if this is compatibility problem with Newspaper. Please help. Thanks a lot.

  • This topic was modified 6 years by MrAdler.
Post count: 18

–Please ignore this specific comment, I didn’t know the forum’s got editing feature. Good job.–

  • This reply was modified 6 years by MrAdler.
  • This reply was modified 6 years by MrAdler.
Post count: 18

Now I’m directly using iframe. It works fine so far, but it’s annoying. Hope you can check if it’s a compatibility problem.

Post count: 35449

Hi,

Please provide some more details about the “annoying problem” in this way we can make some more investigation to see if there is a problem or not

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.