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?
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.
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.
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?
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?
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.