How can I use dynamic email content with a RSS feed?
Using RSS feeds, you can pull in content from your blog, YouTube channel, Etsy store, podcast, and so much more! You can easily add your feed to your message using the Feed element.
Dynamic email content is a fun, powerful feature that helps you include content feeds in your messages. Using Dynamic Email Content, you will be able to include up to date content from RSS and other feeds to your message. Dynamic content is an advanced tool designed to help you make them most of your content.
With dynamic content, you will be able to quickly create your message so that you can spend less time crafting and perfecting your messages and more time doing the things you love.
RSS Feed Details
Feed Content |
Dynamic email markup to include the feed content. Replace https://blog.aweber.com/feed with the RSS URL for your website, podcast, etc. Use num_entries to specify the number of items you would like to pull to your message. You can also take it a step further by specifying which categories to include. |
Feed Content (Alternative) |
Alternative dynamic email logic to print the RSS feed. Using this format will allow you to extract the website's name, description, and link. Replace https://blog.aweber.com/feed with your RSS of your website, podcast, etc. Replace the numerical value to the number of items you would like to pull to your message. This variable will pull the website's title. This variable will pull the website's description. This variable will pull the link to the website's URL. |
Title |
This variable references each item's title. |
Description |
This variable references each item's item's description. This variable references each item's description as plain text. This variable references each item's description as HTML. |
Content (HTML) |
This variable references each item's full content in HTML format. |
Content (Plain Text) |
This variable references each item's full content in plain text format. |
Author |
This variable references each item's author. |
Link |
This variable references the URL where the item can be found on the web. |
Image |
This variable references each item's image URL. |
Published Date |
This variable references each item's published date. You could also choose to format your published date. |
Item Category |
This variable references each item's list of categories. |
Media RSS Feed Details
Media Content |
Dynamic email logic to print additional media items from the RSS feed. |
Media URL |
This variable will pull the media item's direct link. |
Media Length |
This variable will pull the media item's duration. |
Media Type |
This variable will pull the media item's type. |
✨ Quick Tip ✨
There are a few special variables available that may come in handy. For example, let's say you want to include some information about your feed in your message's subject line. It's easy to do this with a succinct variables. Note, the "feed" variable below, always refers to the first feed included in your message.
The feed title | |
The title of the feed's first post. | |
Example as used in a dynamic subject line. |
Additionally, if you're looking to display RSS data from a specific timeframe, such as the past 'X' days, you can achieve this by adding a filter based on the published date.
Published Date Filter |
The timeframe can be modified by adjusting the number of days shifted in |
Example |
Blog Example
Using dynamic email content, you can dynamically pull in content from your blog to continue driving traffic back to your website. In this example, we will be pulling articles from AWeber's blog.
Note: If you're looking to have an image pulled, you need to ensure to add an image block to your message in order for the image to show.
When clicking Preview & Test or sending a test message, you will see that the latest blog posts are pulled to your message.
Podcast Example
Using dynamic email content, you can dynamically pull in content from your podcast. When available, you can also pull in the podcast's image and include a clickable, listenable playbar.
When clicking Preview & Test or sending a test message, you will see that the latest podcast episodes are pulled to your message.
YouTube Example
Using dynamic email content, you can dynamically pull in videos directly from your YouTube channel.
When clicking Preview & Test or sending a test message, you will see that the latest podcast episodes are pulled to your message.
Etsy Store Example
Using dynamic email content, you can dynamically pull in content from your Etsy store to continue driving traffic back to your shop.
When clicking Preview & Test or sending a test message, you will see that the latest Etsy products are pulled to your message.
For more information on dynamic email content, and the different types of variables that you can include when coding for dynamic email content, check out the articles below: