PHP/Wordpress help

Status
Not open for further replies.

dubber609

New member
Dec 3, 2007
42
0
0
I wrote a little scraper for my auto blog, but I'm having a problem on the posting end. Right now, it saves the auto-gen pages to blog0.dat-blog50.dat and then the script e-mails them to my wordpress blog by e-mail account. Dealing with the e-mail crap has proven unreliable(I think I have an hourly limit of how many e-mails I can send).

I need to be able to post the auto-gen pages without using the e-mail. I was going to write a script to fill in the forms on the WP Admin Write page, but I know there has to be a more efficient way. Could someone explain to me an easier way to auto-post.

thanks,
dubber :rasta:
 


Check out the wp_insert_post function. There is a lot more to it but this is the gist of what I used to transfer some data to WP

Code:
wp_insert_post(array(
         'post_title' 	=> $title,
         'post_content' => $content,
         'post_category' => $category,
         'post_status' => $status
));
 
Thanks Xrproto, that was easier than I thought it was going to be, and it works so much better than f'in around with e-mail. Nis: the XML-RPC method would take too much time for me because it's a little over my head at this point. Thanks for the help.
 
Status
Not open for further replies.