Posting to WordPress without using wp-admin

Right I'm writing a script on the same server as my wp-install. I have full access to the wp database.

What I need to do it add new posts (entries, logs, whatever you want to call them) through this script and save it as draft so I can go back in and edit it later.

I'm assuming one or more people in the universe have attempted this before and I'm assuming some of those succeeded and even that a couple of them might reside in Notes.

I realise I'm going to spend a good deal of time in the codex, I'm just looking for the best way to approach this task. Do I hack in directly to the database? Or do I include the WP functions and emulate the admin section? Or is there a magical script I can use just for this purpose?

Leave a Reply




Created by DesignForWeb company. All rights reserved © 2007-2010. Check also the iPhone / iPad developers blog
Disclaimer
The materials collected in this blog were taken from open access sources. We try our best to preserve the copyrights of original authors and clearly state the authorship as well as link to original source website where it's possible. Please leave your comment if you feel offended by any post or if you dispose of any information about breach of copyright law in this blog. We will do our best to resolve the situation immediately.