This is currently working as designed - we only include featured images in the RSS Listing Module when the RSS feed being included is that of a HubSpot hosted blog. This is because the concept of a featured image isn't part of the RSS feed standard (see http://www.rssboard.org/rss-profile for documentation of the standard), so when the feed is external, there's no universal way to identify the featured image for each post in an RSS feed. There seem to be some common ways people include featured images in the content:encoded element in their Wordpress (or other CMS') blog RSS feeds, but it can vary from blog to blog.
From what I can read is it possible to display the feature images from Hubspot Blog RSS feeds when you render them in WordPress or elsewhere?
I've been trying to work this out and so far have only found plugins that will output a list of blog posts as blog title and link.
What I need to do is to display the featured image and the blog title as a minimum (ideally the excerpt too or some of the content) AND then be able to filter this list on a page based on hubspot tags/categories.
Is this wishful thinking or is possible?
I've gone to hubspot support and they don't really have much more advice than to point me to some posts about creating an API but the posts aren't very detailed.
Hi @rolvskjaerpe, can you link the blog in HubSpot that you're looking to embed onto your external site as well as the page you're trying to place it on? Happy to help here.
Hi @rolvskjaerpe, Thanks for the extra information. This seems like an issue with the way your CMS is processing the HubSpot RSS feed. I'm able to use a HubSpot RSS module and print out the contents of your feed here: https://www.playtimepottery.net/api-test. HubSpot uses encoded content tags in our XML files to display data. Since image tags are implicitly closed, closing the image tags might have been a red herring.
This stackoverflow thread's last reply goes over the fact that there have been changes to the way that RSS feeds can be rendered (and thus, processed). When I use the URL option in this RSS viewer here: https://codebeautify.org/rssviewer, I'm able to load in the feed and see all data.
You can also try using an RSS converting tool to input your blog and generate an RSS feed that is more compatible with your current CMS's RSS feed module.
Hi again Connor. I see that you are not displaying images in the example. I'm still not able to compile the xml because the "unclosed" image tags. The xml are being red flagget in Visual Studio.
Came across this when googeling the problem:
The <img> tag represents what is known as a void element (see HTML5 spec), so called because it can't have any contents (unlike, say <a> or <div> ). Therefore there is no syntactic reason why it should need to be closed in HTML.
XHTML, however, is based on XML, where every tag needs to be closed.
This is currently working as designed - we only include featured images in the RSS Listing Module when the RSS feed being included is that of a HubSpot hosted blog. This is because the concept of a featured image isn't part of the RSS feed standard (see http://www.rssboard.org/rss-profile for documentation of the standard), so when the feed is external, there's no universal way to identify the featured image for each post in an RSS feed. There seem to be some common ways people include featured images in the content:encoded element in their Wordpress (or other CMS') blog RSS feeds, but it can vary from blog to blog.
Hello @cbarley -- is it possible to add a particular tag to my rss feed to get the funcationality? Although it's not part of the RSS standard, it's not technically out of the question to extend RSS with custom tags. For example, Apple has custom tags available that their devices are able to read.
Hi Connor. I owe you an apology. The rss/xml from HubSpot is impeccable. I, as a rss/xml noob, clearly haven't a clue of what I'm doing. Turns out that it was a matter of decoding the content in the xml. All the nagging about unclosed image tag was a result of me using the xml url, rendered in Chrome, as xml source.