Title: Using Shortcodes
Last modified: August 31, 2016

---

# Using Shortcodes

 *  [mleir](https://wordpress.org/support/users/mleir/)
 * (@mleir)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/using-shortcodes-7/)
 * Can I use a shortcode in the modal window like this?
    [modalplate_trigger]Example
   Button[/modalplate_trigger] [modalplate title=”Free initial consultation”]<h2
   class=”landing-page-sidebar”>Request a free initial consultation</h2> Complete
   this form and we will contact you to schedule a free consultation. [contact-form-
   7 id=”1976″ title=”Contact Form Landing Page”][/modalplate]
 * When I test it, I just see the contact form 7 shortcode.
 * [https://wordpress.org/plugins/wp-modalplate/](https://wordpress.org/plugins/wp-modalplate/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [mleir](https://wordpress.org/support/users/mleir/)
 * (@mleir)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/using-shortcodes-7/#post-6909546)
 * FYI: I added
 * $content = do_shortcode($content);
 * to line 6 of wp-modalplate/methods/shortcode.php
 * and now my contact form shows in the modal window.
 * Might be a nice addition to your next update??
 * Thanks for a great super simple plugin!!

Viewing 1 replies (of 1 total)

The topic ‘Using Shortcodes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-modalplate_fefefb.svg)
 * [WP Modalplate](https://wordpress.org/plugins/wp-modalplate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-modalplate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-modalplate/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-modalplate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-modalplate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-modalplate/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [mleir](https://wordpress.org/support/users/mleir/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/using-shortcodes-7/#post-6909546)
 * Status: not resolved