WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp List Subscribe Form
Mailchimp Shortcode (6 posts)

  1. helgatheviking
    Member
    Posted 2 years ago #

    The shortcode needs some tweaking to work better with the_content's filters... specifically wp_autop (yes it is the bane of every shortcode's existence). I am getting line breaks after the hidden inputs! and paragraph tags where they don't belong.

    http://wordpress.org/extend/plugins/mailchimp/

  2. helgatheviking
    Member
    Posted 2 years ago #

    additionally, it'd be a great idea for developers if you'd add the ability to filter the HTML output. we could use preg_replace or more ideally, domdocument to manipulate the html, etc

  3. helgatheviking
    Member
    Posted 2 years ago #

    took a stab at updating the plugin:
    http://pastebin.com/WP9dPgyC

    mailchimpSF_signup_form() now returns a concatenated string that doesn't get cluttered up by wpautop. since mailchimpSF_signup_form() is now returning a string, the widget was changed to ECHO.

  4. mc_nate
    Member
    Posted 2 years ago #

    Boom!

    Thanks for that, Helga! :)

  5. helgatheviking
    Member
    Posted 2 years ago #

    sure thing. do you think this is something you might include in an update? i hate using hacked plugins...

  6. mc_nate
    Member
    Posted 2 years ago #

    I can't say with certainty, but I'll be happy to pass it along for consideration in our next release. :)

    We're always welcome to feedback!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic