I have recently finished a site migration from WordPress to HubSpot. The client has requested that all the URLs and functionality stay the same as what the original site was. The only thing I have left is the blog author pages.
HubSpot keeps them at /[blog]/author/[author] and only includes the author's posts for that blog. However, I need them to be at /author/[author] and include the author's posts for every blog.
Is there any way to do this? The only thing I could think of was to make dynamic pages with HubDB but having to maintain a separate copy of every author is not ideal.
I have around 6 years of coding experience, primarily working with Django web applications and Machine Learning engineering, including any devops needs and ~1.5 years of HubSpot experience.
I looked through quite a few other answers and documentation pages but none were directly addressing what I need. I think I know how to pull all the posts from every blog as long as I can get the author listing page to live at the required URL.
The HubSpot Blog author pages are indeed dynamically created by hubspot and will be like/[blog]/author/[author]
Since you can create multiple blogs, like 'News' or 'blogs'. HubSpot want to seperate them for each posts.
I think you have 2 options.
Option 1: You could setup a flexible redirect patterrn to sent '/autor/:author' to /[blog]/author/{author}
Option 2:
As you mentioned, setup a HubDB with the autors and the author slug.
And create dynamic pages with the use of the Hubl function blog_recent_author_posts to create the blog's by users. Knowing there will be a limit of 200 post by user.
Hi @jvargas2, I believe Option 1 by @Indra would be you best option, but that won't solve the fact that you want to change the behaviour of the author's page. To solve that, remember you can use the "if blog_author statement" in your template to add whatever you want to your author's page code. Using the function that Indra tells you in Option 2 should help you solving your problem.
Hi, I've just come across this same issue, has hubspot fixed this issue in the past couple of years?
If I have 3 different blogs for example, we then have 3 author pages per author all with the identical bio, just with different blogs not great for SEO or user experience
This doesn't really make any sense
I guess like a lot of things in hubspot I'll have to come up with a user un-friendly work around like hubdb
Matthew Scott Head of Development | Hubspot Solutions Architect
B2B marketing agency: Specialist B2B content marketing and demand generation for SaaS vendors and HubSpot Users | Deeply Digital | HubSpot Partner since 2010
Hi @jvargas2, I believe Option 1 by @Indra would be you best option, but that won't solve the fact that you want to change the behaviour of the author's page. To solve that, remember you can use the "if blog_author statement" in your template to add whatever you want to your author's page code. Using the function that Indra tells you in Option 2 should help you solving your problem.
The HubSpot Blog author pages are indeed dynamically created by hubspot and will be like/[blog]/author/[author]
Since you can create multiple blogs, like 'News' or 'blogs'. HubSpot want to seperate them for each posts.
I think you have 2 options.
Option 1: You could setup a flexible redirect patterrn to sent '/autor/:author' to /[blog]/author/{author}
Option 2:
As you mentioned, setup a HubDB with the autors and the author slug.
And create dynamic pages with the use of the Hubl function blog_recent_author_posts to create the blog's by users. Knowing there will be a limit of 200 post by user.