Skip to main content
Active Contributor IV
May 10, 2023 8:36 PM UTC
Solved

Dynamic content in an email pointing at "Newest Blog Post"

I am working on building a re-engagement flow that will send an email template that dynamically pulls the name, image, blurb, and URL of the latest blog posted on our website.

I know Klaviyo can pull products into an email dynamically - but can I o the same for our blog pages, How would I tag these pages for Klaviyo to “see” them and how can I keep them differentiated from the actual products that we have triggers around?

 

Thank you

This topic has been closed for replies.
Spark Bridge Digital LLC
2025 Champion
May 10, 2023 8:47 PM UTC

Hey there!

There is a way to pull in your Blog RSS feed into your emails. Here is a detailed overview of the steps you’ll take to get it added in! https://help.klaviyo.com/hc/en-us/articles/115005258768

I do not believe you can make it dynamic to the user’s prior history with your brand, like what they’ve seen before but it’ll at least be a updating feed placed into the emails!

Klaviyo Champion | Your Email Marketing BFF

13 replies

dgibbsAuthor
Active Contributor IV
May 24, 2023 6:12 PM UTC

Maybe make a unique alias for each of them? that may have been what was holding me back?

Contributor I
May 24, 2023 6:14 PM UTC

SIDE NOTE: you can use this site to see a feed displayed in HTML.

https://rss.bloople.net/?url=https://www.nhc.noaa.gov/gtwo.xml  just replace the feed as needed to see a full rendered output.

https://rss.bloople.net/?url=ADD-FEED-URL-HERE

 

 



 

Contributor I
May 24, 2023 7:17 PM UTC

This feed also: https://www.nhc.noaa.gov/gtwo.xml  I noticed it has a <![CDATA[ tag - is there a filter to render this?  The ...|stiptags work but only shows text and not images.

I found a snippet of code that almost works to display an image, the image will not show up but it does add the correct link to the image.

<div>{% for item in feeds.NHC_Graphical_Tropical_Weather_Outlooks.rss.channel.item|slice:":+1" %}
<table style="display: inline-block; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td style="padding-right: 15px; padding-left: 18px; width: 150px;"><a href="{{ item.link }}"> <img style="margin: 1px; width: 150px; height: 150px;" src="{% if item|lookup:'media:content'|lookup:'0'|lookup:'@url' %}{{ item|lookup:'media:content'|lookup:'0'|lookup:'@url' }}{% else %}{{ item|lookup:'media:content'|lookup:'@url' }}{% endif %}" /></a></td>
</tr>
</tbody>
</table>
{% endfor %}</div>