When I try to embed a YouTube video using one of the following ways:
- By entering a YouTube URL
- By entering an
[embed]
shortcode - By adding a video through the media browser (which results in an
[embed]
shortcode)
I am seeing the video just fine in the editor view:
But in the frontend view, using this code:
$content_desktop = do_shortcode(get_the_content());
I am seeing
Things I've checked:
- I'm the admin user so there should be no problems with rights
- Other shortcodes work fine
- The DOM literally shows what I show above, there is no CSS interference
- The YouTube videos I'm trying to embed allow external embedding
- There are no options for me to check in "Settings" > "Media" (apparently it used to be that you had to explicitly turn on media embedding there, but no more)
Is there something well known that could be causing this?