We want to add in our home page recent blog post by topic . I have followed the documentation here in Hubspot. But still the desired output won't appear.
The code provided above does appear correct but there are a couple suggestions I would provide that could help you troubleshoot this problem. I assume that when trying to use this module that you're not seeing anything appear on the page. I would double-check both the Blog ID and the topic name to make sure they are exactly as they appear in HubSpot. If the tag name if even a little off nothing will be returned from the above function. I would also try and pprint the object to the page just to make sure you have the data after you set it as a variable. Before you for loop I would try the following and make sure you're getting the correct data back from the HubL function.
{{ topic_posts|pprint }}
If you see the data displaying on the page that is a good sign and I would do the same in the for loop but for topic_post and then make sure each of the objects you're trying to access from topic_post are avaible.