Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/colbyfayock/md-to-wp

Upload a directory of markdown files to WordPress
https://github.com/colbyfayock/md-to-wp

Last synced: about 2 months ago
JSON representation

Upload a directory of markdown files to WordPress

Awesome Lists containing this project

README

        

# 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