QuickBooks HelpQuickBooksHelpIntuit

Add a Blog Post to Any Email Campaign

by Intuit Updated 4 weeks ago

With Mailchimp's feed tags, you can add blog posts from your RSS feed to any type of email campaign. Subscribers can read and interact with your blog content without going to your website.

Use feed tags to add blog posts to Regular, A/B Test, or Multivariate campaigns, as well as automation emails. If you want, use a feed tag in an RSS Campaign to embed content from more than one blog's feed.

In this article, you'll learn two ways to use merge tags to add blog content to any type of campaign.

Before you start

Here are some things to know before you begin this process.

  • Make sure you're familiar with merge tags.
  • If you need to add content from more than one blog to your campaign, use an extra feed merge tag or feedblock for each blog you add.
  • If you use more than five feedblocks in a single campaign, you may not be able to preview your campaign in Mailchimp. We recommend you send a test email to yourself instead, or use fewer feedblocks to preview your campaign before your send.

Definitions

  • Feed merge tag
    A tag that automatically adds blog content to an email.
  • Feedblock
    A collection of feed tags that you put together to designate how many blog posts to display and which RSS feed elements to include in an email. Use a feedblock if there are certain parts of your feed that you want to highlight or hide, or if you need more tools to customize the way your posts look.
  • RSS merge tags
    Merge tags that add blog content to your RSS campaign. Unlike feed merge tags, RSS merge tags don't work in other types of campaigns.

Insert the feed merge tag

The quickest way to add blog content to your email is to use a feed merge tag.

To use the feed merge tag, follow these steps.

  1. In the Content section of the campaign builder, click Edit Design.
    edit design
  2. Click the Text content block you want to work with, or drag and drop one into your layout.
  3. Type this tag in the editing pane.
    *|FEED:http://www.example.com/blog/feed/[$count=#]|*
    

    There are also additional variables you can place in the brackets to customize your blog content.

  4. Replace the example URL with your feed's URL, and replace # with the number of posts you want to show in the campaign.
    A screenshot of a feed merge tag in the editing pane of the campaign builder
  5. Click Save and Close.

We recommend you preview and test your email to see what your blog content will look like for recipients.

Additional variables

Add extra variables to the brackets in your feed merge tag to tell Mailchimp what to display, and how to format your blog posts.

  • $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, including images.
  • $content=titles
    Tells the feed to display the titles of each entry only, formatted as links.
  • $constrain_rss_img=Y
    Resizes the images in your feed to fit the width of your template. It's important to use a capital Y.
  • $category=xyz
    Displays only the posts in a certain category of your RSS feed. Replace "xyz" with the category you choose.

Examples of feed merge tags

If you need ideas for what variables to include in your feed merge tag, take a look at these examples. Be sure to replace the example feed with your feed's URL.

Example 1

This example feed merge tag shows links to the two most recent posts from Mailchimp's blog, showing only the titles.

*|FEED:http://www.pottedplanter.com/blog/feed/[$count=2,$content=titles]|*

A screenshot showing text links pulled from the titles of two blog posts

Example 2

This example feed merge tag shows the summary of two recent posts from a specific category in the Mailchimp blog RSS feed.

*|FEED:http://www.pottedplanter.com/blog/feed/[$count=2,$category=Indoor plants]|*

A screenshot showing two text links and story summaries pulled from two blog posts.

Create a feedblock

For more control of the blog content that is pulled into your campaign, use a feedblock. You'll add opening and closing feedblock tags, and place additional feedblock tags in between those tags to tell Mailchimp what to display.

To create a feedblock, follow these steps.

  1. In the Content section of the campaign builder, click Edit Design.
    edit design
  2. On the design step, click the Text content block where you want to add your blog posts, or drag and drop a new one into your layout.
  3. Type *|FEEDBLOCK:URL|* in the editing pane to open the feed section of your campaign.
  4. Replace URL with your RSS feed's URL.
  5. Enter feed item tags to specify the content you want to include for each blog post, like the title, author, or image URLs.
  6. At the end of the content tags, enter the closing tags *|END:FEEDITEMS|* and *|END:FEEDBLOCK|*.
    An image that shows how to input a feedblock into the Design Step of the Campaign Builder.
  7. Click Save and Close.

We recommend you preview and test your campaign to see what your blog content will look like for subscribers.

Feedblock examples

If you need ideas for what feed item tags include in your feedblock, take a look at these examples. Be sure to replace the example feed with your feed's URL.

Example 1

This example feedblock shows titles of the two most recent posts from a feed, a text content summary for each blog entry, and social share icons for each post.

*|FEEDBLOCK:http://blog.mailchimp.com/feed|*

*|FEEDITEMS:[$count=2]|*

*|FEEDITEM:TITLE|*

*|FEEDITEM:CONTENT_TEXT|*

*|FEEDITEM:SHARE:Facebook,X (formerly Twitter),Digg|*

*|END:FEEDITEMS|*

*|END:FEEDBLOCK|*

A screenshot of a feedblock in preview mode.

Example 2

This example feedblock shows the title of one recent blog post from the feed, along with an image, the post URL, the author, and the post date.

*|FEEDBLOCK:http://blog.mailchimp.com/feed|*

*|FEEDITEMS:[$count=1]|*

*|FEEDITEM:TITLE|* by *|FEEDITEM:AUTHOR|*

*|FEEDITEM:URL|*

*|FEEDITEM:IMAGE|*

*|END:FEEDITEMS|*

*|END:FEEDBLOCK|*

A screenshot of a feedblock in preview mode.

In your feedblock, the *|FEEDITEM:URL|* tag can be used to pull in the full post URL, or it can be used in a hyperlink if you want to link it to custom text.

Each blog's feed setup is different, so your results may look slightly different from the example screenshots in this article.

Mailchimp

Sign in now for personalized help

See articles customized for your product and join our large community of QuickBooks users.

More like this