adobe photoshop 60 download

Adobe Premiere Pro CS5 discount free adobe dream weaver 8 download free download adobe distiller cheapest adobe photoshop free download full version where does adobe save download video files

adobe bridge download

Adobe Creative Suite 4 for Mac buy cheap download adobe photoshop elements 5 adobe download free premiere pro buy cheap adobe acrobat 8 download purchase adobe photoshop cs3 extended full download

free adobe download manager

buy cheap Adobe cs5 Design Premium for Mac adobe acrobat reader 6 0 1 free download adobe flashplayer download softpedia discount download adobe after effects download adobe after effects

free download adobe illustrator 9

cheapest Adobe cs5 for Mac adobe cs2 download free crack key generator how to download adobe flash movies cheapest adobe acrobat reader free download adobe 8 free download

free adobe download

Autodesk AutoCAD cheapest adobe download free premiere adobe distiller free download discount download adobe flashplayer free adobe download manager download

adobe audition 1 5 download

cheap AutoCAD Architecture adobe acrobat 8 free download adobe creative suite 2 download cheapest download adobe premiere pro cs3 download adobe reader cd

adobe encore menu download

cheapest Adobe Captivate CS5.5 download adobe ebook reader adobe photoshop elements 3 for mac download cheap download adobe photoshop 7 download adobe flash player

download adobe reader latest version

discount Creative Suite 5.5 download adobe photoshop cs2 adobe photoshop 8 free download full version discount download free adobe standard adobe flas player 9 download

download adobe photoshop mac free

Autodesk AutoCAD discount free adobe 8 download free download of adobe pagemaker buy cheap adobe dream weaver 8 download download adobe scanner

adobe reader download for mac

discount AutoCAD 2010 free adobe download free download of adobe reader buy cheap free download adobe photodeluxe home edition adobe flash player 8 download

adobe lightroom download

AutoCAD LT 2012 buy cheap adobe golive cs2 download freeware adobe acrobat download cheap adobe flash activex download download adobe flashplayer

adobe flash 9 download

adobe acrobat x buy cheap adobe free download software download adobe photoshop cs2 cheap download adobe audition 3 free adobe premiere download

adobe flash offline download

adobe creative suite 5 discount download adobe acrobat reader 8 adobe 9 download discount free adobe photoshop elements 6 download download adobe reader pdf free

search adobe reader 7 0 download

cheap adobe cs5 adobe acrobat writer free download adobe fine reader free download cheap adobe player download center adobe professional download

download adobe flashplayer free

Adobe cs5 Design Premium cheapest where free download adobe acrobat free download of adobe reader buy cheap adobe flash 7 download download adobe reader8

free adobe acrobat writer download

Adobe eLearning Suite cheap download adobe active x download adobe acrobat 7 updates discount download adobe flash 9 for h264 free adobe pdf maker download

adobe photo plus 6 download

discount Adobe eLearning Suite 2 download adobe photoshop cs2 adobe illustrator full crack download cheapest adobe photoshop download site adobe acrobat raeder v7 download

adobe flash player download for windows vista

discount Adobe Flash Catalyst CS5 adobe photo editor download adobe reader 6 free download discount download adobe flashplayer free free download adobe illustrator 9

adobe shockwave player download

discount Adobe Indesign CS5 free adobe dream weaver 8 download adobe photo free download cheapest adobe flash player downloader free download hunter grabber free adobe profesional 8 download

adobe type manager download free

discount Adobe Photoshop CS5 download adobe acrobat reader free old adobe software download discount download adobe flash player stand alone adobe acrobat update download

Post on wordpress remotely with xmlrpc in PHP

Recently i have been working on some wordpress blogs that required frequent addition of post . Coding an automated post generator was not a big task but didn’t know how to post it using php . After a research found that we can post on wordpress remotely using xmlrpc .

I am sharing you the php function which i used in my project . As the code use cURL it should be enabled and activate xmlrpc on wordpress admin panel .

function wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$categories=array(1))
{
$categories = implode(",", $categories);
$XML = "<title>$title</title>"."<category>$categories</category>".$body;
$params = array('','',$username,$password,$XML,1);
$request = xmlrpc_encode_request('wp.newPost',$params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
curl_setopt($ch, CURLOPT_URL, $rpcurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 1);
curl_exec($ch);
curl_close($ch);
}

Usage :

wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$categories=array(1));

All parameter that we pass are self explanatory except $rpcurl .
$rpcurl – is the path to file xmlrpc.php of your blog , mostly it would be on root of your blog . eg : http://www.yourdomain.com/xmlrpc.php

You have done ! Comment me if you need any help .

About the Author: a holistic web developer , movie buff and technical blogger from queen of arabian sea.

RSSComments (9)

Leave a Reply | Trackback URL

  1. Balaji J H says:

    Hi,
    This post is too useful!
    I am from Allepey
    Happy to see a malayali
    I need your help can you give your gmail address

    Thanks

  2. anoopsachari says:

    @balaji contact me at anoop.s.achari@gmail.com

  3. Balaji J H says:

    Thanks!
    I have Mailed you! :)

  4. nice says:

    hi Can you help me to access webserver using xmlrpc to add post on other server

  5. anoopsachari says:

    @nice . ys sure tell me

  6. jackie says:

    Hi Ya.

    nice stuff, i have specific requirement where i want to post to specific categories ? How your script handles that ?
    thanks,

    Jackie

  7. anoopsachari says:

    @jackie
    change the value of $category when you call the fuction .
    like :
    wpPostXMLRPC($title,$body,$rpcurl,$username,$password,x);

    replace x with 1,2,3 … etc .

  8. Taukil Ali says:

    Hi,
    I want to post into multiple wordpress blog using XMLRPC at once.Is it possible with one click.if yes then how can I do

  9. Noobie says:

    How do you do posting with tags and custom fields by using this function?

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes