WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp Immediate Send
[resolved] Newlines not converted to html linebreak (3 posts)

  1. bjarteao
    Member
    Posted 8 months ago #

    Newlines in posts are not converted to html linebreak tags, and therefore not visible as new lines in e-mails sent out through MailChimp. This makes the e-mail really hard to read, with no paragraphs, just a huge block of text.

    This is easily fixed by converting newlines to html using for example the nl2br() function.

    This is how I did it (this is on version 1.25 of the plugin, I can't get version 2.0 to work):

    functions.php, line 262:

    $content = array(
    'html' => nl2br($content),
    'generate_text' => true,
    );

    https://wordpress.org/plugins/demomentsomtres-mailchimp-immediate-send/

  2. Marc Queralt i Bassa
    Member
    Plugin Author

    Posted 8 months ago #

    I'll put them on the next version of code expected for monday.
    Thank you for your help.

  3. Marc Queralt i Bassa
    Member
    Plugin Author

    Posted 7 months ago #

    Launched version 2.1 that adds nl2br.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.