This is my first post using the emacs
org2blog mode, where I write the post in my emacs editor and can then just
publish it to my wordpress blog with just a few key-presses. This will make things so much easier and means that I won’t
necessarily have to go to the wordpress editor to post a new posting.
As this is from emacs I'll also post the org2blog section from my .emacs init file, minus the passwords of course :) -
(setq load-path (cons "~/.emacs.d/elpa/org2blog-20130707.323" load-path)) (require 'org2blog-autoloads) (require 'xml-rpc-autoloads) (require 'metaweblog) (setq org2blog/wp-blog-alist '(("A taste of linux" :url "http://www.sharons.org.uk/xmlrpc.php" :Username "sharon" :password "rhubarbandcustard" :wp-code \`org2blog/wp-use-sourcecode-shortcode' :track-posts \`org2blog/wp-track-posts' :tags-as-categories nil))) (add-hook 'org-mode-hook 'org2blog/wp-mode)
Some sites and people say that you should use .netrc to give basic details, and this is mine -
machine host100 myblog A taste of linux login sharon password rhubarbandcustard
but I was unable to get this to work, it consistently said -
Contacting host: www.sharons.org.uk:80 xml-rpc-xml-to-response: XML-RPC fault `Incorrect username or password.'
The solution it turned out was to NOT use .netrc and hold all details in my .emacs file, which I'm now doing very successfully. And this is my first post using emacs, and there will be more as it is so much easier for me to do it like this.