Add a Blog Post to Any Campaign

This feature requires Author user level or higher.

With MailChimp's *|FEED|* merge tags, you can include blog posts from any RSS feeds in any of your campaigns. If you use *|FEED|* tags in an  RSS-driven campaign, we'll embed additional blog content to your scheduled RSS campaigns.

Below, you'll learn how to use and customize *|FEED|* merge tags in your campaigns.

Add Feed in a Campaign

To include a linked blog post in your campaign content, input the *|FEED:[$category=xyz]|* tag into any the text editor of any content block on the Design step of the Campaign Builder. Add any other content or images around the tags, as you normally would.
Here's what the FEED tag should look like, after you add a URL and parameters for the number of blog entries. In this example, we're asking the campaign to display two entries from the MailChimp blog RSS feed.


In the text editor, place the code anywhere you want the blog entries to appear. 

Important Variables

FEED merge tags must include the URL where blog's RSS feed is located. Additional variables are optional, and indicate how to format each entry in your campaign.

  • In this example, the URL is
  • $count=2 indicates how many blog posts to show in the campaign. Replace the "2" with your preferred number.
  • $content=full  tells the feed to display the full blog post. 
  • $content=titles tells the feed to display the titles of each entry only, formatted as links to full content. 
  • $constrain_rss_image=Y resizes the images in your feed to fit the width of your template. It's important to use a capital Y.

If you choose to use more than one of these, format your feed like the example below. 


Example MailChimp blogs included with FEED tag

To include posts from multiple blogs in your campaign, place another *|FEED|* tag in the text for each blog  feed you want to pull from.

Customize Your Feed

For greater control over blog content, use  *|FEEDBLOCK|* merge tags to surround customized RSS feed elements. These tags indicate how many entries pull from a feed and subsequently, which feed elements to include for each entry.

To build a FEEDBLOCK, follow the steps below. 

  1. Navigate to the Design step of the Campaign Builder.
  2. Click to edit any content block.
  3. In the text editor, enter the tags *|FEEDBLOCK:URL|* and *|FEEDITEMS:$count=#, $constrain_rss_image=Y]|* to open the feed section of your campaign. Replace the URL with your RSS feed's URL, and replace # with the number of entries you want to show. Omit $constrain_rss_image=Y if you don't want us to resize the images in your feed to fit the width of your template.
  4. Enter FEEDITEM tags to specify which content you want to include for each entry. 
  5. At the end of these content tags, enter the closing tags *|END:FEEDITEMS|* and *|END:FEEDBLOCK|*.

​In the end, your block might look something like this example, which tells MailChimp to embed two blog entries, and include the entry title, the date it was posted, the author, and a summary of the content presented in text, for each blog entry.



Was this article helpful?
What can we do to improve articles like this?

Technical Support