Title: Custom &quot;Insert into Post&quot; Code
Last modified: August 20, 2016

---

# Custom "Insert into Post" Code

 *  [Dan.LaSota](https://wordpress.org/support/users/danlasota/)
 * (@danlasota)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/custom-insert-into-post-code/)
 * When end users are editing posts they insert images using the Media Library. 
   They open up the library, select the image and click on the button labeled “Insert
   into Post”.
 * The code that is inserted takes the form:
 * `<a href="permalink to image" rel="attachment wp-att-postID of the image"><img
   src="url of the image" alt="alt of the image" title="title" width="width" height
   ="height" class="class list" /></a>`
 * I want to customize the form of this markup text and add to it, but still allow
   the users to use the Media Library and the “Insert into Post” method.
 * What do I edit in order to accomplish this?
 * Thanks.

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

 *  [drcherrychocolate](https://wordpress.org/support/users/drcherrychocolate/)
 * (@drcherrychocolate)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/custom-insert-into-post-code/#post-2276288)
 * I would also like to be able to customize the output of the Insert into Post.
   Can anyone suggest a good approach? Can I add a filter to this? Is there an existing
   plugin for this?
 *  [njansen](https://wordpress.org/support/users/njansen/)
 * (@njansen)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/custom-insert-into-post-code/#post-2276291)
 * I need to know the same thing. Why is nobody replying? Is this not possible?
 * Thanks
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/custom-insert-into-post-code/#post-2276292)
 * Try posting your own topics instead of tagging onto a 7 month old topic that 
   references an older version of WordPress.

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

The topic ‘Custom "Insert into Post" Code’ is closed to new replies.

 * 3 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/custom-insert-into-post-code/#post-2276292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
