Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MailChimp merge tags in newsletter template #91

Open
jonathanstegall opened this issue Feb 13, 2020 · 3 comments
Open

MailChimp merge tags in newsletter template #91

jonathanstegall opened this issue Feb 13, 2020 · 3 comments

Comments

@jonathanstegall
Copy link
Member

We need to figure out how to get merge tags into the newsletter template that WordPress generates. So far this doesn't appear to work.

What we've tried so far is the preview text merge tag:

<!--*|IF:MC_PREVIEW_TEXT|*--> 
<!--[if !gte mso 9]><!----><span class="mcnPreviewText" style="display:none; font-size:0px; line-height:0px; max-height:0px; max-width:0px; opacity:0; overflow:hidden; visibility:hidden; mso-hide:all;">*|MC_PREVIEW_TEXT|*</span><!--<![endif]--> 
<!--*|END:IF|*-->

In a campaign send to a test user, this does not work. There may be other things we have to do.

@jonathanstegall
Copy link
Member Author

This is the attempt that didn't work: 61870ca

@jonathanstegall
Copy link
Member Author

The preview text merge tag works now, as of 88108e3

@jonathanstegall
Copy link
Member Author

Let's find out if this works for site messages:

*|IF:DONATED365 = true|*
	*|IF:RECURMEM = true|*
	Message to recurring donors
	*|ELSE:|*
	Message to donors who are not recurring
	*|END:IF|*
*|ELSE:|*
Message to everyone else (non-donors)
*|END:IF|*

*|IF:500DONOR = true|* 
Message to 500+ donors
*|ELSEIF:RECURMEM = true|*
Message to recurring donors who aren't 500+
*|ELSE:|*
Message to everyone else (non-500+, non-recurring, non-donors)
*|END:IF|*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant