Need a code sample showing how to post to Wordpress using Codeigniter. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Need a code sample showing how to post to Wordpress using Codeigniter. (/showthread.php?tid=21917) |
Need a code sample showing how to post to Wordpress using Codeigniter. - El Forum - 08-24-2009 [eluser]squelly[/eluser] Does anyone have a code sample they can share that show how to make a basic blog post to Wordpress using the CodeIgniter xml-rpc library? So far, I have this, which always results in "Bad login/pass combination", although I am using the correct combination. Code: function doPost(){ Need a code sample showing how to post to Wordpress using Codeigniter. - El Forum - 08-24-2009 [eluser]Dam1an[/eluser] Have you enabled XML-RPC under remote publishing in settings > writting? I didn't know about that and wondered why I was getting a login error for ages Need a code sample showing how to post to Wordpress using Codeigniter. - El Forum - 08-24-2009 [eluser]squelly[/eluser] Yes, I have, good thought tho' ! Need a code sample showing how to post to Wordpress using Codeigniter. - El Forum - 08-24-2009 [eluser]squelly[/eluser] After much gnashing of teeth, this seems to work: Code: function doPost(){ The important part is to note the struct for the elements of the actual post. |