Skip to main content
Contributor I
December 29, 2020
Solved

how to use RSS feed in email

  • December 29, 2020
  • 16 replies
  • 3925 views

I set up xml feeds successfully in Klaviyo from RSS feeds from Shopify blogs… I did my very best to follow the one article that describes doing dynamic content, but it does not work… anyone have thoughts?

 

also, there is no indication of how Klaviyo can pickup just the latest/new content since the last email went out, like Mailchimp does. any ideas?

    This topic has been closed for replies.
    Best answer by k.mcevoy

    Hi there, 

     

    Thanks for contributing to the Community! Is this the article you followed to add the dynamic content? What is the syntax you are using within your template that is not populating correctly? If you are updated the RSS feed with the latest blog post, Klaviyo will automatically detect the newest post and pull it from the top of the feed. You have the option to limit the number of posts you wish to display in your feed with Django Filters: 

     

    Thanks again for being a member of the Community!

     

    Kelsey 

     

    16 replies

    David To
    Klaviyo Employee
    Klaviyo Employee
    March 3, 2022

    Hey @pankaj,

    Similar to most email providers, Klaviyo emails are written in HTML. As previously mentioned in this thread, Klaviyo uses Django for template tags and filters. 

    David

    Contributor I
    February 1, 2023

    Hello Group!


    I know this thread is OLD but I can’t find any updated information - the help on this is the worst!  Does anyone have a video of the NEW EDITOR getting this work?  I hate reading help section with no real complete examples of coding and syntax.

    I was able to setup the “WebFeeds”  but after that adding to a creative is a no go.

     

    If someone could just post some complete code (HTML) that I can see and test and I can figure it out from there.

    Title
    Description
    Image
    Date

     

    Thank you

    -Eric

    Contributor I
    February 2, 2023

    Hello Group!


    I know this thread is OLD but I can’t find any updated information - the help on this is the worst!  Does anyone have a video of the NEW EDITOR getting this work?  I hate reading help section with no real complete examples of coding and syntax.

    I was able to setup the “WebFeeds”  but after that adding to a creative is a no go.

     

    If someone could just post some complete code (HTML) that I can see and test and I can figure it out from there.

    Title
    Description
    Image
    Date

     

    Thank you

    -Eric

    Good Day Group,

    I have it working now. 

    Contributor I
    January 14, 2024

    Hey @EMail1Dude can you plz share the solution how you have fixed it.

    Contributor I
    January 15, 2024

    @Uppli give me a little time to go back and look.  I was never able to fully get it working as I needed and thus moved to a different platform because of it.  I’ll go back to my tests and post what I was able to get working.

    Contributor I
    January 16, 2024

    @Uppli 
    I was not able to get a working RSS feed to display images. I did find this link that has some good information though. https://www.webmarked.net/how-to-email-blog-articles-using-klaviyo-and-smart-rss-feed/

    I have learned that each RSS feed I try, as noted in some of the help articles, a lot has to do with the formatting of the output of the feed.

    It also looks like they updated some content on this help page: https://help.klaviyo.com/hc/en-us/articles/115005258768

    You first need to “Setup you feed”.  Next add the feed to the “email” in the “Display Options” of a “Text” box.  Once you have done that go back to the “Styles” tab and enter your variables as needed to display rss content.  This is the tricky part as it depends on the feed info.  Referring to the top link info, click on the </> when viewing in the “Styles” tab.  This will take you to the HTML of this section.  Add this:

    <p><a href="{{ item.url }}">{{ item.title }}</a></p>

    <p><img src="{{ item|lookup:'media:content'|lookup:'@url' }}" /></p>

    <p>{{ item.description|slice:':255' }} <a href="{{ item.url }}">Read More</a></p>

    I’ve tried a few different feeds and was not able to get an image to display.  I’m sure it’s something silly I’m just missing but I’ll continue to play around with it and update as I find new-working info.

    If anyone out there has all this working, please list the feed you are using and the HTML used to get images to show etc. so we can clone and then take it from there.