Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pass a merge list variable from Mailchimp to WordPresss and use it in a template
<?php
if (isset($_GET['firstname'])) { //we have a first name to work with
$firstname = $_GET['firstname'];
echo '<p>Hi '.$firstname.', here is your download.</p>';
} else { //there isn't a first name variable, so decide what to do
echo '<p>Here is your download.</p>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.