In order to connect your Emacs installation with a WordPress installation, you can use an Emacs Lisp expression like the one below:
(setq org2blog/wp-blog-alist
'(
("blog"
:url "https://example.com/xmlrpc.php"
:username "username"
:password "password")))
Using the same expression, you can add as many sites as you want. Like so:
(setq org2blog/wp-blog-alist
'(
("blog"
:url "https://example.com/xmlrpc.php"
:username "username"
:password "password")
("blog2"
:url "https://example2.com/xmlrpc.php"
:username "username"
:password "password")
))
Note that each URL for each site ends with an /xmlrpc.php
. This is because Org2Blog uses the xmlrpc.php
file provided by your WordPress installation to:
- Open a connection
- Post your content