How to migrate your blog from HubSpot to WordPress

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 known 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.
  • Author.

LLM HubSpot Blog Import is an automated service for the content management system. This online service allows migration 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 migration from HubSpot to wordpress.

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.

Solution

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 );

Side Effects

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, You can always reach out to Inbound Mantra (HubSpot Partner).

And If you would like to know more about my work on HubSpot COS, please look up the links below.

  1. The HubSpot Migration Checklist
  2. 5 Libraries A HubSpot COS Developer Should Use
  3. How to increase HubSpot COS Page Speed

Your Rating. Come on, give us a high five.

Similar Posts

Recent Posts

Mu Sigma logo

G2 Crowd | HubSpot Reviews

★★★★★ 4.6/5
5,997 reviews
Mu Sigma logo

capterra | HubSpot Reviews

★★★★★ 4.5/5
‎4,091 reviews