Plugin to post Wordpress posts to DEV.to 🚀
Tags: wordpress, php, programming, webdev
Published: 2023-05-09 10:38:45

# 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](https://github.com/novuhq/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.

![WhereIsWordpress](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o01jd0ymxatne53qqcse.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](https://novu.co) 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.

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

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

3. 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
1. [Clone my repository](https://github.com/github-20k/wordpress-post-to-devto), upload it to the WordPress plugins folder, and activate it.

2. Go over to the settings and add your API key; you can find it from [DEV.to extensions](https://dev.to/settings/extensions):

![API KEY](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fhqd32guch7eyfgf94f.png)

3. Go over to any post, and add your DEV.to post details

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8gro29gj3ukcj827irs.png)

4. See the post on DEV.to

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zvvga8bw7vcy86s2gmm4.png)

## Things you should know

1. There is a conversion of HTML to MD before sending it to DEV.to; it might look different.

2. 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](make sure you subscribe to my newsletter) 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 :)