I’m having trouble getting the for loop working to access the items inside my custom XML data feed.
Here is what the data feed looks like (and yes it has been validated in Klaviyo):
And here is the code I have tried:
{% for post in feeds.oculizm.data.posts %} in the loop
<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="https://hipstiks.com/pages/shop-her-style?oculizm_post_id={{ post.post_id }}"><img src="{{ post.img_url }}" style="margin: 1px; max-width: 150px; height: auto;" /> a link post_id {{ post_id }} {{ post.post_id }}</a></td>
</tr>
</tbody>
</table>
{% endfor %}
But the preview email I receive doesn’t show any table.
Thanks for your help!