Skip to main content
Solved

How can I include individual items from a web data feed?

  • January 21, 2021
  • 2 replies
  • 283 views

joshkremer
Contributor I
Forum|alt.badge.img+2

I have created several custom feeds from posts in Wordpress to be included in Klaviyo emails. I can see that there is Python ish “slice” notation for including a range of items, but I can’t seem to figure out how I would add individual items from a feed. For example: post 1, 4, 19. Is that possible in Klaviyo?

Thanks for the help, happy to provide more background if it would help!

 

Josh

Best answer by caroline

Hi there,

Apologies for the delayed response on this. One way to do this is by providing starting and ending indices to the “slice” notation. For example: slice:"0:0" should display the first item in the feed, while slice:”1:1” should display the second item in the feed, etc.

Hope this helps.

Best,

Caroline

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

caroline
Forum|alt.badge.img+8
  • Klaviyo Alum
  • 215 replies
  • Answer
  • February 19, 2021

Hi there,

Apologies for the delayed response on this. One way to do this is by providing starting and ending indices to the “slice” notation. For example: slice:"0:0" should display the first item in the feed, while slice:”1:1” should display the second item in the feed, etc.

Hope this helps.

Best,

Caroline


joshkremer
Contributor I
Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • February 22, 2021

Hi Caroline, that does help! Just what I needed, thanks!