Title: insert Media breaks code
Last modified: August 22, 2016

---

# insert Media breaks code

 *  [dassaffe](https://wordpress.org/support/users/dassaffe/)
 * (@dassaffe)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/insert-media-breaks-code/)
 * Hey people,
 * I have a pretty strange problem. Whenever i add a media-object from the library,
   it breaks my shortcode?!
 * `[c attid="3566" aption id="attachment_3566"]<img src="foo.jpg" alt="foo" width
   ="1280" height="720" class="size-full wp-image-3566" /> captiontext[/caption]`
 * instead of
 * `[caption attid="3566" id="attachment_3566"]<img src="foo.jpg" alt="foo" width
   ="1280" height="720" class="size-full wp-image-3566" /> captiontext[/caption]`
 * No JS-Errors in the console. Any ideas?

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 5 months ago](https://wordpress.org/support/topic/insert-media-breaks-code/#post-5565168)
 * WordPress does not add an “attid”, as far as I know. Do you have any plugins 
   enabled that might be doing that? Maybe your theme is doing it, try the default
   theme.
 *  Thread Starter [dassaffe](https://wordpress.org/support/users/dassaffe/)
 * (@dassaffe)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/insert-media-breaks-code/#post-5565169)
 * I will give it a shot, thank you 🙂

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

The topic ‘insert Media breaks code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [dassaffe](https://wordpress.org/support/users/dassaffe/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/insert-media-breaks-code/#post-5565169)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
