WordPress.org

Forums

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

  1. bjarteao
    Member
    Posted 1 year 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 1 year 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 1 year ago #

    Launched version 2.1 that adds nl2br.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags

No tags yet.