• I’m calling an embedded code in a php file by creating a shortcode to use in multiple places across the site. How do I activate the recaptcha with this form? I tried adding the do_action(‘google_invre_render_widget_action’); in a couple of places but it doesn’t look like it’s working when I run a test.
    function find_a_rep_shortcode() {

    return ‘<div class=”find-section”>
    <form action=”https://www.site.org/site/FindRepresentatives&#8221; name”findrepcomponent” id=”findrepcomponent” method=”post” target=”_blank”>
    <input type=”hidden” name=”NEXTURL” value=”https://site.org%2Fsite%2FPageServer%3Fpagename%3Dfind_your_representative”&gt;
    <input type=”hidden” name=”orig_zip” value=””>
    <label for=”zip”>Connect with your elected officials</label>
    <input type=”text” name=”zip” id=”zip” size=”10″ maxlength=”10″ class=”Rectangle-3″ value=”Enter your zip/postal code” onfocus=”this.value=\’\'” required>
    <input type=”submit” name=”go” id=”go” class=”et_pb_button” value=”FIND”>
    </form>
    </div>’;
    }
    add_shortcode(‘find_a_rep’, ‘find_a_rep_shortcode’);

  • The topic ‘How to make this plugin work with custom form’ is closed to new replies.