APIs & Integrations

SophieFET
Member

Customizing the related blogs module in the blog post template

Hi all,

We’re migrating our blog over to hubspot at the minute and as part of that we have a ‘related content’ (blogs module) that will display four blog on similar topics. However, as these topics have been converted based on our wordpress tags, they’re pulling through inconsistent and unrelated blog posts. It would take too long to go back through old blogs and update the topic as we have over 300. Is there a way I can display related posts based on blog title rather than topics/ tags? Or maybe another way around it?

Many Thanks

Sophie

0 Upvotes
3 Replies 3
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Customizing the related blogs module in the blog post template

Hi @SophieFET,

The actual mechanic I’m referring to (which works with the related blog posts module) are tags (also known as topics), and you can find the details for these in the following Knowledge Base article. A single blog post can have multiple tags, so in theory there shouldn’t be an issue with having multiple tags.

What are blog tags?

Topics, or tags, can be used on your HubSpot blog to organize similar content. You can even add modules to your templates to link to each of your topic pages.

0 Upvotes
SophieFET
Member

Customizing the related blogs module in the blog post template

Thanks Derek - one issue we have as well is that certain tags are used in our menu i.e. we tag all blogs ‘Blog’, all News ‘News’ and this is then added to our wordpress menu as a sub menu option under a overarching header of ‘News + Insights’. We’ll need to do the same for our HubSpot - would the API interfere with these tags?

Many Thanks

Sophie

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Customizing the related blogs module in the blog post template

Hi @SophieFET,

It’s not possible to adjust the related content module to be based around title instead of tags. The related content module just shows posts with the same tags; it doesn’t have the ability to determine similar blog topics based on the language of the titles. You could try to use the COS Blog Post APIs to correct the topics?

Update the blog post | COS Blog API

PUT /content/api/v2/blog-posts/:blog_post_id - Updates the Blog Post in the database. If not all the fields are included in the body, we will only update the included fields.

0 Upvotes