Title: Insert into post &#8211; Custom Button
Last modified: August 20, 2016

---

# Insert into post – Custom Button

 *  [Damjan](https://wordpress.org/support/users/skydriver/)
 * (@skydriver)
 * [14 years ago](https://wordpress.org/support/topic/insert-into-post-custom-button/)
 * Hello friends,
 * I have created a plugin and works great but because the plugin uses shortcode
   I have created and custom button and form in the visual editor…
 * // the button…
    add_action(‘media_buttons_context’, ‘add_my_custom_button’); //
   the form, will be displayed when the user will click the custom button add_action(‘
   admin_footer’, ‘add_inline_popup_content’);
 * So, my question is, how to get the entered values from the form and how to put
   in the visual editor ?
 * In the form I have
    <input name=”url” … /> <input name=”width” … /> <input name
   =”height” … />
 * and I want to put in the editor in this format:
    [my_shortcode url=”…” width=”…”
   height=”…”]
 * I need some like ‘Insert into post’ custom button…
 * Thanks!

The topic ‘Insert into post – Custom Button’ is closed to new replies.

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)

 * 0 replies
 * 1 participant
 * Last reply from: [Damjan](https://wordpress.org/support/users/skydriver/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/insert-into-post-custom-button/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
