Newbie question: How do I programatically post to wordpress blog?

  • Unknown's avatar

    I am new to wordpress and I am familiar with java/javascript coding.
    After spending almost a day I am unable to find a way to put a link on my website that uses wordpress API to post a blog.
    So a user can post my website url as a blog after giving his/her wordpress blog url , and wordpress can authenticate it and post the blog to users blog url.
    I don’t want to use any widget like ShareThis. Please, any ideas? Thanks !

  • Unknown's avatar
  • Unknown's avatar

    @raincoaster: You mean you understood the question?

  • Unknown's avatar

    Vaguely. I recognize the j-word!

  • Unknown's avatar

    Also: complicated by the substitution of the word “blog” for the word “post” but in any case, it’s not possible here and rather than me saying so, it’s easier to direct the person to that thread, which PROBABLY has the info they need.

  • beachnbrandy, I’m a software developer and I don’t think I understand your question.

    Answering the question in the title: WordPress.com supports XML-RPC, which allows programatically posting to a blog.

    The question in the text: you’re looking for a feature that will allow other users (who have blogs) to easily publish links to your posts on their blogs, a bit like a ‘Digg This’ button? Right now there is no way to do that on WordPress.com.

  • Unknown's avatar

    First of all thanks for your replies Raincoaster and Tellyworth ! I went through the link given by Raincoaster and yes I did not really understood difference between the two wordpress till I read through the link.
    Now I guess Tellyworth understood what I meant, though I apologize for not being so clear.
    What I am looking for is if you go to any site with ShareThis link(e.g clipmarks.com and click on any post to see share this link) and there aftre clicking on Sharethis icon one can chose blog->wordpress and enter their user id(beachnbrandy), password(mypasswd) and blog URL for wordpress (http://beachnbrandy.wordpress.com/wp-admin/) and on click of a button I can see a post on my wordpress account.

    How does on accomplish that?Which API I should look at?

    Hope it is more clear now, I mean yes, its more like posting messages to your own facebook,Digg,myspace account from Sharethis link.
    Thanks again.

  • Unknown's avatar

    Have you looked into the Press This Bookmarklet?

  • Unknown's avatar

    Wohooo..Bingo! Yes that’s what I was looking for, a javascript like this mentioned in Press This will do the trick

    <a href=”
    javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f=’http://yourblogid.wordpress.com/wp-admin/press-this.php’,l=d.location,e=encodeURIComponent,g=f+’?u=’+e(l.href)+’&t=’+e(d.title)+’&s=’+e(s)+’&v=2′;function a(){if(!w.open(g,’t’,’toolbar=0,resizable=0,scrollbars=1,status=1,width=700,height=500′)){l.href=g;}}setTimeout(a,0);void(0);”> POST THIS SELECTION

    Thanks for your instant help Raincoaster, you saved me lot of pain and time, I am not even sure when I would have gotten to discover this functionality by myself !

  • Unknown's avatar

    You might not have; it’s not the world’s most obvious thing. Glad to have helped.

  • Unknown's avatar

    I know…making it resolved now.Thanks!

  • The topic ‘Newbie question: How do I programatically post to wordpress blog?’ is closed to new replies.