Form shortcode with multiple options as attributes
You can use shortcode attributes in the following way: // The shortcode function function mailchimp_form_shortcode( $atts = [], $content = null ) { $attributes = shortcode_atts( array( ‘option1’ => ‘no’, ‘option2’ => ‘no’, ), $atts ); $mc_form = ‘ <div id=”mc_embed_signup”> <form action=”xxxxxxx” method=”post” id=”mc-embedded-subscribe-form” name=”mc-embedded-subscribe-form”> <div id=”mc_embed_signup_scroll”> <div class=”container”> <div class=”mc-field-group”> <label for=”mce-EMAIL”>E-mail: <span … Read more