Use org2blog to share blog efficiently
org2blog will post items in
org-mode into wordpress blog.
It's the best blog writer in the world.
My only issue that I need share the blog url to social network sites after publishing.
Here is my solution to automatically copy post url into clipboard after publishing:
(defun my-org2blog-post-subtree () (interactive) ;; go to the top node which is a blog item ;;(outline-up-heading) ;; post and publish (org2blog/wp-post-subtree t) (let* ((postid (or (org-entry-get (point) "POSTID") (org-entry-get (point) "POST_ID"))) (url org2blog/wp-server-xmlrpc-url)) (if (not postid) (message "This subtree hasn't been posted, yet.") (setq url (substring url 0 -10)) (setq url (concat url "?p=" postid )) (kill-new url) (with-temp-buffer (insert url) (shell-command-on-region (point-min) (point-max) (cond ((eq system-type 'cygwin) "putclip") ((eq system-type 'darwin) "pbcopy") (t "xsel -ib")))) (message (concat url " => clipboard")))))
BTW, please use some clipboard manager to synchronize the X clipboards.