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.
Congratulations @mcsteemie! You have received a personal award!
1 Year on Steemit
Click on the badge to view your Board of Honor.
Do not miss the last post from @steemitboard!
Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @mcsteemie! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit