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

  1. bjarteao
    Posted 10 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,


  2. Marc Queralt i Bassa
    Plugin Author

    Posted 10 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
    Plugin Author

    Posted 9 months ago #

    Launched version 2.1 that adds nl2br.


You must log in to post.

About this Plugin

  • MailChimp Immediate Send
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.