Skip to content
 
 

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-wordpress

A node.js JavaScript client for working with WordPress.

Requires WordPress 3.4 or newer (uses the WordPress XML-RPC API).

Install

 npm install wordpress

Usage

Include the wordpress package

var wordpress = require('wordpress');
var wpClient = wordpress.createClient({
    "url": 'http://yourwordpressURL', 
    "username": 'user', 
    "password": 'pwd' 
});

Demo of post

wpClient.newPost({
        title: 'Your title',
        status: 'publish', //'publish, draft...',
        content: '<strong>This is the content</strong>',
        termNames: {'category': ['cate1', 'cate2'], 'post_tag':['tag1', 'tag2']}
    },
    function() { 
        console.log(arguments);
    }
});

License

MIT license

About

A node.js JavaScript client for working with WordPress

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages