• Resolved Pt

    (@bncpeter)


    I’ve noticed when other forms are included on the age gate page, both selecting Yes or No on the age gate form or trying to submit the included form result in the user being dumped onto {base-url}/wp-admin/admin-post.php.

    In my case I’m adding a MailChimp signup form via a shortcode.

    Any thoughts on how to resolve this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @bncpeter,

    Your Mailchimp form is closing the Age Gate form before it’s finished so when you submit it, it’s missing some fields it requires to process.

    I’ll look at the affect of moving the “additional content” outside of the main form to prevent this in a future release.

    You should be able to work around this for now using the age_gate_after filter.

    Something like this should work:

    
    add_filter('age_gate_after', 'render_signup_form');
    
    function render_signup_form()
    {
      return do_shortcode( '[contact-form-7 id="91" title="quote"]' );
    }
    

    Of course, switch the shortcake to your own one.

    Thanks
    Phil

    Thread Starter Pt

    (@bncpeter)

    Perfect, thanks Phil. Exactly the problem I thought and solution I hoped for.

    I thought about digging in and looking for a filter or action hook to hang the function off but then considered that someone else might have this issue and benefit from it being brought to your attention.

    Very much appreciate the quick response.
    Cheers,
    Pt.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conflict with other forms’ is closed to new replies.