Title: Embed working erratically
Last modified: August 29, 2019

---

# Embed working erratically

 *  Resolved [rajk748](https://wordpress.org/support/users/rajk748/)
 * (@rajk748)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/embed-working-erratically/)
 * Hello,
    I recently updated to PHP 7.0 following which the embed videos/posts 
   stopped working. It happens only for desktop version, the mobile AMP theme works
   fine. In any post, some embeds work and other don’t. For instance, in this post,
 * [https://rajksite.com/roma-a-cinematic-marvel-by-alfonso-cuaron/](https://rajksite.com/roma-a-cinematic-marvel-by-alfonso-cuaron/)
 * the first Youtube video and a Twitter embed works fine but for the last Youtube
   video, I just see the URL, no embed. I first thought it was a theme problem but
   it is happening for all themes, including Twenty Ninenteen.
 * Thanks
    Rajendra
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fembed-working-erratically%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Rough Pixels](https://wordpress.org/support/users/roughpixels/)
 * (@roughpixels)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/embed-working-erratically/#post-11878294)
 * I see the url in your page as:
    `https://youtu.be/6BS27ngZtxg`
 * …which is Google’s way of doing a URL shortener (which is crazy). Problem is,
   it redirects to a different url, so this might be the issue (buggy). I’ve seen
   this not work 100% in WordPress.
 * But try this one instead:
    `https://www.youtube.com/embed/6BS27ngZtxg`
 * Best Regards,
    Andre
 *  Thread Starter [rajk748](https://wordpress.org/support/users/rajk748/)
 * (@rajk748)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/embed-working-erratically/#post-11878699)
 * Thanks Andre.
 * I tried the proper URL and that also does not seem to work. However, if I put
   the iframe code for the video, it works fine. Is there any way I can replace 
   all Youtube URLs with iframe codes in one go?
 * Best Regards,
    Rajendra
 *  [Rough Pixels](https://wordpress.org/support/users/roughpixels/)
 * (@roughpixels)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/embed-working-erratically/#post-11880618)
 * Hi Rajendra,
 * Sorry for the late response, as I am just starting my day here.
 * Replacing all youtube URLs with the iframe code, I’m not quite sure unless there
   is a plugin for that. I know there are a lot of plugins for youtube and other
   video services, so there might be one, or one to start using for new videos you
   add.
 * Best Regards,
    Andre
 *  Thread Starter [rajk748](https://wordpress.org/support/users/rajk748/)
 * (@rajk748)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/embed-working-erratically/#post-11880709)
 * Hi Andre,
 * No problem. I will look for a suitable plugin to embed iframes.
    Thank you very
   much for your help. Best Regards, Rajendra

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Embed working erratically’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [rajk748](https://wordpress.org/support/users/rajk748/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/embed-working-erratically/#post-11880709)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
