Title: YouTube embedding adding ) to end
Last modified: August 21, 2016

---

# YouTube embedding adding ) to end

 *  [katmac_aus](https://wordpress.org/support/users/katmac_aus/)
 * (@katmac_aus)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/)
 * When I embed youtube clips into a post via adding the url or by using `wp_oembed_get('
   http://www.youtube.com/watch?v='.$clip_url);` it displays the video and then 
   puts a right bracket ) straight after it. I’ve tried other videos like Vimeo 
   and they are fine. Its just YouTube. I’ve tried different YouTube videos and 
   all do the same. When I check the source code they are added outside the iframe.

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

 *  [stefazbagien](https://wordpress.org/support/users/stefazbagien/)
 * (@stefazbagien)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/#post-4698601)
 * I noticed the same. 🙁
    Is there any solution for this?
 *  [billynair](https://wordpress.org/support/users/billynair/)
 * (@billynair)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/#post-4698604)
 * it has been a few years, but I think there was an issue with inserting videos
   on WP. I used [FitVids](http://wordpress.org/plugins/fitvids-for-wordpress/) 
   and it worked.
 *  [ThE_ED](https://wordpress.org/support/users/the_ed/)
 * (@the_ed)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/#post-4698605)
 * As far as I can see this is a problem on Youtube’s side. It happens if you grab
   the embed code from the YT page itself as well: YT generates an additional (useless)
   closing bracket.
 *  Thread Starter [katmac_aus](https://wordpress.org/support/users/katmac_aus/)
 * (@katmac_aus)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/#post-4698607)
 * I ended up assigning it to a variable and trimming it before echoing it.
 *  `$embed = wp_oembed_get(‘[http://www.youtube.com/watch?v=&#8217](http://www.youtube.com/watch?v=&#8217);.
   $clip_url);
    $embed = rtrim($embed,’)’); echo $embed;`
 *  [stefazbagien](https://wordpress.org/support/users/stefazbagien/)
 * (@stefazbagien)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/#post-4698615)
 * Thanks, katmac_aus, that’s what I did as well, but this is rather workaround 
   than solution.
    I use the Teris theme from wpexplorer ([http://www.wpexplorer.com/tetris-wordpress-theme/](http://www.wpexplorer.com/tetris-wordpress-theme/))–
   the strange thing is that I use few months already and until now all was OK. 
   Thanks one again for the reply!
 *  [ThE_ED](https://wordpress.org/support/users/the_ed/)
 * (@the_ed)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/#post-4698671)
 * Reply from Google Data API project member: “Apologies; the engineering team has
   a fix for this that’s ready and will be pushed out in the near future.”
 * [https://code.google.com/p/gdata-issues/issues/detail?id=6098](https://code.google.com/p/gdata-issues/issues/detail?id=6098)

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

The topic ‘YouTube embedding adding ) to end’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [ThE_ED](https://wordpress.org/support/users/the_ed/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/youtube-embedding-adding-to-end/#post-4698671)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
