So, today we'll learn how to migrate your blogs from HubSpot to WordPress with a click. Depending on the size, page load speed, scope, and goals of your website you can migrate from HubSpot to WordPress. The pages of the old website can be easily added manually to the WordPress theme, but due to a large number of blogs, we can not put the content manually. So, we have come up with an out-of-box way to do this, which will make it very easy.
For this migration, we have used a plugin know as LLM HubSpot Blog Import
What will we Migrate
- Title of the Blog
- Post Content (Body of the blog > Includes:- Image, CTA, Link, embed assets)
- Featured Image
- Meta Description
- Publish Date & Time
- Tag - Categories
LLM HubSpot Blog Import is an automated service for the content management system. This online service allows importing of all the blog content from your HubSpot platform to Wordpress quickly, easily and for free. With this plugin, you can forget about those hours of manual data moving.
How it works
- You will need an HubSpot API for this, get it from the API key section of HubSpot
- After putting the API in the field, just press the 'Sync HubSpot Data' button.
Important Note: This Plugin migrates only 300 blogs at once.
Why it didn't work?
This works very well, but HubSpot allows only 300 blogs to be moved. If you have 300+ blogs, then you have to make changes to the plugin code. To do this, the content will have to be migrated by some time frame.
For this, we made some changes to the Wordpress php (.php) file. You can see the given below:
In your Wordpress dashboard, navigate to Plugins > Editor. Select LLM HubSpot Blog Import > save.php The code given below will need to be modified and replaced
.$response = wp_remote_get('https://api.hubapi.com/content/api/v2/blog-posts?hapikey='.$apiKey.'&archived=false', $getArgs);
In this code, we need to change "Epoch Timestamp", for which we will use online Epoch Timestamp converter. In this, we will take the time interval in which less than 300 blogs have been published. Instead of the old code, we have to replace this new code according to the timestamp. There will be the change in the highlighted from the colour
.$response = wp_remote_get( 'https://api.hubapi.com/content/api/v2/blog-posts?hapikey=' . $apiKey . '&archived=false&created__range=1506816000000&created__range=1569888000000&state=PUBLISHED&limit=1000',$getArgs );
The side effect of doing this is that when we do this, the operation stops due to overloading of the server.To avoid this, the size of our server RAM should be re-configured depending upon the size of content.If you have any doubt, please feel free to share in the comments section. I would like to learn from you.If you would like to know more about my work on HubSpot COS, please look up the links below.