Skip to content

colbyfayock/md-to-wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to WordPress

An easy way to get a markdown blog to WordPress!

Getting Started

  • Install dependencies
npm install
  • Create a new .env file with the following:
WP_JSON_ENDPOINT="https://wordpresswebsite.com/wp-json"
WP_USERNAME="[WordPress Username]"
WP_APPLICATION_PASSWORD="[WordPress Application Password]"
POSTS_DIRECTORY="[Location of markdown post files - Ex: /Users/myname/posts ]"
  • Upload posts
node posts.js

Setup

Generating a WordPress Application Password

https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/

About

Upload a directory of markdown files to WordPress

Resources

License

Stars

Watchers

Forks