Blog RSS Featured Image

Hi there,

 

I was wondering if there is a reason why the RSS feeds for blogs don't include the featured image for a post? We're using the RSS feed to generate emails using Digesto and it's become a pain point that we can't access the images that we upload for each post.

 

I'd imagine it could print out something like this, probably fairly easy to add to the feed as well because I'm guessing Hubspot has it developed in a way they can access the post data as an object.

 

<image>http://image-source-here.jpg</image>

Thanks!

Sean

32 Replies
Occasional Contributor

 

 

Sure @suryast - it's an external site but maybe someone will find it useful.

 

I looked at a hubspot feed (blog.hubspot.com/rss.xml) and made an identical feed on my site:

 

hubspot's bloghubspot's blogmy markupmy markup

 

custom rss feed output to match hubspotcustom rss feed output to match hubspot

 

 

New Contributor

Sorry to say @jlamb2's solution didn't work for me. But for those who are using WordPress, I found a solution. The HubL template code is capable of picking up the comments link from the RSS feed. So I changed our RSS feed to use the url to the featured image instead of the comments. This solution is good only if you don't care that the comments links in your feed link to the featured image instead of the comments.

 

You can insert this code into your theme's functions.php file:

 

add_action('comments_link_feed', 'change_comments_link_feed');
function change_comments_link_feed() {
  global $post;
  if(has_post_thumbnail($post->ID)):
    $thumbnail = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
    return($thumbnail);
  endif;
}

Then in your email template, you can use post.comment_url to get the image url:

<img src="{{ post.comment_url }}" width="100%">

 

Occasional Contributor

HubSpot, are you going to chime in here? It's pretty crazy that you're not adding functionality for featured images in RSS feed emails. Users have been asking for this for YEARS.

New Contributor

Has there been a solution to this? We would really like to our featured image to pull through into the RSS feed on our WordPress site. It is frustrating that this detail, which seems to be extremely desired and popular, has not been addressed. 

New Contributor

Has this been added yet?

Status updated to: Not Currently Planned
HubSpot Product Team

Hello everyone,

 

The exclusion of the featured image in the RSS feed is deliberate 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. 

 

For now and the foreseeable future, we're going to stick with the RSS feed standard of not including the featured image in RSS feeds. We're always re-evaluting these types of product decisions based on the feedback we get from our customers, so if you disagree with this decision please comment here and let us know! 

 

- Snaedis 

New Contributor

Hi Hubspot and Snaedis,

This is totally unacceptable. This feature comes standard in many competing ESPs, many of which are far less sophisticated than Hubspot. We spent thousands of dollars migrating over to Hubspot after the sales agent assured us that there was a seamless RSS to newsletter automation. This small feature is literally the only roadblock in fully automating our content - what you are saying is that we have to manually insert every image into every newsletter we send from the content on our website - the labor it will cost to do this grunt work is simply not worth it - we could save the money and move over to another service! Please advise how you will be fixing this issue, or else work that you will work with our developer one-on-one to create a solution that is viable for us to use moving forward. Thank you!!

New Contributor

I agree that not including this feature is a huge oversight, and something that should be an obvious feature out of the box. 

 

@SaltyBabe I don't know if it helps at all, but something we've done is add a generic image next to every blog in our weekly newsletter template. It's definitely not ideal, but you only need to do it once and it does add a little interest/colour to the emails (which would otherwise just be full of text because of the RSS/image oversight - again, not ideal).

New Contributor

There is no need for the featured image to be part of the rss standard to add it. RSS is an extension of XML, like HTML. The "X" in XML stands for "Extensible."

 

You can build an HTML page with a <hubspot> element on your website, if you wanted to. Create a style to tell the browser how to render it, and it's just fine. <hubspot> isn't a standard HTML element, but browsers and reader devices will handle it well enough. It doesn't break anything.

 

In the same respect, RSS is a standard of the set of elements that all RSS readers should understand how to handle. Any nonstandard elements in an RSS feed can easily be skipped over by readers that don't understand how to handle those elements. Part of the beauty of the standard is that it's extensible -- there is no problem in building something on top of that standard.

 

To include a <hubspot:featured-image> element in an RSS feed will break nothing. But for those of us who are savvy enough to know what to do with it, the featured image element is hugely valuable and saves your customers a lot of time and frustration. That's not to mention how helpful it would be for developers looking to extend HubSpot's platform.

Regular Contributor

@Snaedis ,

 

Chiming in here as I'm now two years deep, but have had three clients need this feature (WP blog site, no ability to easily pull in featured image.)

 

It would be one thing if HS wasn't the royalty of blogging and content marketing, but since you guys are such an industry leader it is quite dissapointing to not have a professional looking RSS email feed (it simply looks wrong without the featured image.) So again, letting you know this has cost me and my clients lots of dough.

Status updated to: Not Currently Planned
HubSpot Product Team

Hi @marianberry , I'm sorry this has been costly for your clients 😣

 

@Joe_list Of course you can use any element you want to in HTML -- but here we're talking about people being unable to use the email tool in HubSpot to automatically pull in their featured blog image from WordPress (or similar). It's precisely because you can use whatever HTML you want to that we can't pull in the image reliably. For the email tool to be able to do that, you can't have the featured image element named whatever you want - the tool won't know what to look for. That's why it does actually need to be part of the RSS standard in order for us to include it, because as it is (not part of the standard), there's no way to reliably pull in the featured image from blogs hosted outside of HubSpot. 

 

For anyone looking for a solution, I've heard customers have had success with this WordPress plugin. 

Visitor

Looking for this as well. As an experienced developer this shouldn't be that hard for HS to solve.