This morning I built a quick way to create and edit posts on Wordpress and then publish them to Steem with one click. This is an awesome flow because I'm in Wordpress all day already, I can work on multiple posts at once, and I have all my media in one place. There is a lot wrong with my current implementation and a lot of features that I could add in the future, but I just wanted to get the ball rolling and blog as I make progress.
My first step was to create a private page that lists all my posts, both public and private. I added a button to each post that when clicked, uses Steem JS to broadcast that content which appears as a new blog post on Steem. I mapped Wordpress categories to Steemit tags/topics, my post's featured image to Steemit featured image, title to title, etc.
If you want to give it a try, it was pretty straightforward:
Create a private page and build a template that shows all public and private posts. Set the private page to use this template.
In the template, add a button to map the post's data to what Steem needs and then broadcast.
Use SteemJS to broadcast the content. The post here by @jfollas was pretty much all I needed for this part.
Write a private post, load up your private page then click the button to send it to Steem!
Future Development
Ability to push edits to Steem
Pull in data about the post back into wordpress. How many upvotes, comments, etc.
My categories need some work. I'd like to be able to choose which category is the main one.
Switch to a php library if I can find one that allows broadcasting. Even though the post page is private, I don't like my public key in the front end.
From WordPress to Steem v0.1 | Ecency
My Splinterlands Journey Stepping into Day 35 with a Solid 47 Mana Victory Over an Archmage Bot!lovlygirl ·