Support » Plugin: IW Magnific Popup » Shortcode Support?

  • Resolved marknow

    (@marknow)


    Firstly, love the work you’ve done on this plugin – thank you!

    I’m trying to get a ContactForm7 shortcode to work inside the popup div, but having no success. The popup works great, but the shortcode doesn’t translate into the actual form within the div.

    Any ideas? Thanks again,
    Mark /

    https://wordpress.org/plugins/iw-magnific-popup/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter marknow

    (@marknow)

    Well, I should have Googled a bit further 😉
    It works, but you need to echo the shortcode in a PHP statement within the div, like so:

    <div id="test-popup" class="white-popup mfp-hide">
      <?php echo do_shortcode( '[contact-form-7 id="155" title="optin-pop"]' ); ?>
    </div>

    Plugin Author welshhuw

    (@welshhuw)

    Glad you got it sorted.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode Support?’ is closed to new replies.