HubSpot Supported Variable not Working

{{ content.featured_image }} is pulling in no value when testing with Structured Data Testing Tool

Anyone know why and if there is a fix? It meets HubSpot Supported Variables.

Hmm, I’ve used that variable in json schema before with no problem. Does the post your testing have a featured image set? If you right click > Inspect do you see the image URL showing up in your post’s code?

Agreed, should work.

If there is a featured image set, does the listings one work instead?

{{ content.post_list_summary_featured_image }}

Don’t know why it would if the other doesn’t, but could be worth a try?

I tried:

{{ content.post_list_summary_featured_image }}

Unfortunately, it retured blank also.

image null.PNG

Yes, a featured image is set in the post.

When I use:

{{ site_settings.logo_src }}

It correctly pulls in our logo URL, but when I use the featured snippet codes’s suggested, it pulls no url value into the code.

Would it be possible for you to link us to the page you’re testing?

Okay, so, it looks like you’re using this code on the listing page which is why it’s not working. You can’t set a featured image for a listing page. If you want an image in your schema for the main blog page you would need to add the url yourself. If what you’re actually wanting is schema for your posts you need to put your schema code in the Post Content of your blog code, not the Listing, and then test a singular post page.

That makes sense. I caught on to that yesterday, but wasn’t sure. I must have misunderstood the page I went to for help.

Thank you!

Is there any sort of schema that I should implement for the listing page?

For a listing page I’d usually go for either just your organization data or a webpage schema type.