Yoast SEO plugin removes JWPlayer metadata from WordPress posts
-
Hi,
We are running videos inside our posts for a food blog, with javascript codes provided to us by our ad company, using the JWPlayer platform. We’ve also been using AMP HTML for a couple of years and have been trying to add AMP video codes manually to the video codes they provide us. Over these 2 years, we’ve seen the long codes sometimes turn into short codes automatically in our post editor – something we suspected JWPlayer’s javascript would execute in the browser. It is very weird, but happens all the time. The end result does not appear to be affected: the video still plays, even if code automatically getting shorter is a bizarre experience for a site owner.
We contacted our ad partner, and they confirmed the stripping issue, but mentioned it is a known issue with the Yoast SEO plugin. Why would Yoast remove code we insert into a WordPress post? The code comes from JWPlayer and seems fine.
Another thing we noticed was the AMP video codes also tend to disappear. We load them. We save them. We test it works on the AMP page. Then we come back 3 months later and the AMP video code is gone! As we loaded 13 new videos this week I was able to reproduce the behavior and captured it in a 1 minute demo (https://youtu.be/g-JnMGX5A40). What I suspect is happening, is that Yoast is also removing the AMP HTML video code in the same process? The result is the videos we loaded for AMP are lost each time we make an unrelated update to the post in the visual editor.
Here is how you can reproduce the bug:
1. Take a WordPress post and add an JWPlayer long code
2. Add the AMP video code
3. Save and check everything’s there
4. Make a change to the post in the visual editor. In our example we just added a “read more” tag.
5. Save
6. The long video code is now shortened to a single line, and the AMP video code is gone.
- The topic ‘Yoast SEO plugin removes JWPlayer metadata from WordPress posts’ is closed to new replies.