TL;DR
If you want to grow your blog or business, cross-posting your content on multiple platforms can boost your views and gain more traction.
At Novu, we know that very well. Every post on our blog page exists on DEV.to and Medium.
I have been working really hard, copy-pasting my entire content between platforms, and I decided enough is enough.
So I built this simple yet sophisticated WordPress to dev.to WordPress plugin.
GIF
PHP is awful, but WordPress is still rocking.
I am not a big fan of WordPress or PHP.
WordPress is slow, and PHP is a dying language. But so far, I still need to meet a CMS that can compete with WordPress. And yes, I have tried Strapi and Sentry. In case you have wondered, Novu marketing website is built with Gatsby, but our CMS is WordPress, surprise ๐ฅณ
DEV.to API needs improvement
So they got all the everyday things right, a few things are missing, and one big bug.
There is no way to get the user's organization. To solve that, I am fetching the user's last articles and checking their organization. There is also a place to manually put the organization name in case you have never posted anything.
There is still no option to schedule the post with the API, so I am posting from WordPress to DEV.to as drafts, and you have to post it by yourself. It may be a good thing.
You can easily change to any organization in your post (via WordPress). But removing your organization as their "organization_id" field excepts only integer is impossible, so you can't pass null or false.
Installation
Clone my repository, upload it to the WordPress plugins folder, and activate it.
Go over to the settings and add your API key; you can find it from DEV.to extensions:
- Go over to any post, and add your DEV.to post details
- See the post on DEV.to
Things you should know
There is a conversion of HTML to MD before sending it to DEV.to; it might look different.
You can't remove the org once you set it.
Grow on open-source
I have worked at Novu - an open-source developer notification infrastructure, for the last year. We have grown to 20k stars in one year and even got a partnership with GitHub.
It was not easy to grow an open-source company - very different than what I have done before.
I have decided to share this knowledge with everybody so you can succeed too!
If anything I have said interesting, https://github20k.com I will be sharing tips and tricks on how to grow with opens-route and also excellent libraries, just like this one.
Cheers ๐ฅ
What's the next thing missing for you?
Let me know in the comments :)