Title: [Plugin: Faster Image Insert] Customized pre and post string
Last modified: August 20, 2016

---

# [Plugin: Faster Image Insert] Customized pre and post string

 *  [staalkemade](https://wordpress.org/support/users/staalkemade/)
 * (@staalkemade)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-faster-image-insert-customized-pre-and-post-string/)
 * Hi, I like the idea of faster image insert allowing me to insert multiple images
   and not a gallery that I cannot view in edit mode.
    However, I think this plugin
   would be super if there is a possibility to wrap multiple images in a div, e.
   g. `<div class="faster-image"><a href="link1"><img src="img1.jpg"></a><a href
   ="link2"><img src="img2.jpg"></a></div>`
 * I’ve looked into the php code and the only place where I can get this to work
   is in
    `function fast_insert_to_editor($html)` by adding the div around `$html`
   in the call to `addslashes` But I have a feeling that that is not a good idea.
   E.g. if I now insert some images and hit enter in the editor afterwards, I get
   extra lines with `<div class="faster-image"></div>` which should not happen. 
   Is there a better way to solve this?
 * In the end, I’d like to make an option that allows to set a pre- and post-string
   that allows users to decide on if they what wrapping they prefer, like there 
   is now a custom string that can be put between images.
 * Cheers,
 * Joes
 * [http://wordpress.org/extend/plugins/faster-image-insert/](http://wordpress.org/extend/plugins/faster-image-insert/)

The topic ‘[Plugin: Faster Image Insert] Customized pre and post string’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/faster-image-insert.svg)
 * [Faster Image Insert](https://wordpress.org/plugins/faster-image-insert/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/faster-image-insert/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/faster-image-insert/)
 * [Active Topics](https://wordpress.org/support/plugin/faster-image-insert/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/faster-image-insert/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/faster-image-insert/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [staalkemade](https://wordpress.org/support/users/staalkemade/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-faster-image-insert-customized-pre-and-post-string/)
 * Status: not resolved