MailChimp does have a campaign type called RSS-to-email. This type of campaign allows you to schedule automatic campaigns to go out with your blog posts each time you post. If you want to include a blog post in a regular campaign, or an A/B split campaign, we can help you do that as well through the use of our *|FEED|* merge tag.
This tag will also allow you to post multiple feeds within one campaign of any type, whether it's a regular campaign or an RSS-to-email campaign.
This is the FEED tag shown in the most complicated format. To enter a blog post into your content, copy over this tag and paste it into your campaign on the Design step of the Campaign Builder like you would any ol' text. You can add in any other content or images around the tags as well.
- The URL, in this case: http://www.mailchimp.com/blog/feed/, is the URL for your RSS feed.
- The variable $count=2 is how many blog posts you want to show in your campaign. Just replace the number 2 with the number of posts you'd like to show.
- The variable $content=full notes that you want to show the full blog post. You can leave out this variable if you just want to show a short excerpt or summary of your RSS item.
- The variable $content=titles will show the titles of your RSS items as a link and nothing more.
In this example, we're using the tag *|FEED:http://www.mailchimp.com/blog/feed/ [$count=2]|* with notes, we just want to show excerpts from two blog posts from the MailChimp blog.
With this tag, you can include posts from multiple blogs. Just use a separate *|FEED|* tag for each URL you want to pull in content from.
Customizing Your Feed
If you want more control over what content shows up in your campaign, we let you decide which elements of your RSS feed to show on your campaigns.
*|FEEDBLOCK:URL|* and *|END:FEEDBLOCK|*
First you'll need to create the beginning and ending flags for each RSS feed. The stuff between gets replicated for each post in the feed. So if you want to use individual FEED:ITEM merge tags, use
*|FEEDBLOCK:URL|* *|FEEDITEMS:|* and *|END:FEEDITEMS|* *|END:FEEDBLOCK|*
as your open and close tags surrounding the following items you want to include.
So, the text in your campaign will look something like this:
In the tag *|FEEDBLOCK:URL|*, replace "URL" with your RSS feed's URL.
For the items open tag, use *|FEEDITEMS:[$count=X]|* to limit the number of posts that show on your campaign. The default is 5.
Available Tags and Their Use
- The title of the RSS feed
- The publish date of the feed
- The URL for the feed as a whole, if provided
- The feed description, if provided
- Displays the posts on your RSS feed. The default number of posts is 5.
- Limits the number of posts on your RSS feed
- The title of the RSS item
- The URL for the RSS item
- The publish date of the RSS item
- The name of the author for the RSS item, if provided
- The URL for comments on your post, if provided
- A comma-separated list of the categories (tags and "posted in") for the RSS item.
- A short summary of the RSS item content in HTML format
- The full content for the RSS item in HTML format, if provided
- A short summary of the RSS item content in plain-text format
- The full content for the RSS item in plain-text format, if provided
- Lets you pull in images from your RSS feed.
- A link to any attached file (like a podcast) with an icon, file name, and file size
- The URL for any attached file (like a podcast)
- A link to the external "source" of this item, if one is provided
This tag will just type out your URL, it will not automatically create a link. If you want the source to be displayed as a link you'll need to create a link in your campaign. When you set up your link, set your protocol to "other" and place the merge tag in the "URL" field.
- The title of your source URL.
- Adds a Like button for the particular RSS item.
- Adds a Tweet button for the particular RSS item.
- Adds a Tumblr Button for a particular feed item.
- Adds a Google +1 button for a particular feed item.
- Adds a "Read Later" button for a particular feed item which directs subscribers to Instapaper's website to save the URL for the feed item.
This feature is available to users with Author level or higher permissions. Take a look at this article to learn more about the different access levels for a MailChimp account.