[wp-hackers] Batch-loading posts?

Kimmo Suominen kimmo at global-wire.fi
Mon Aug 25 13:20:18 GMT 2008

Have you considered using XML-RPC to upload the media files and
to create the posts?  When you upload media via XML-RPC, WordPress
will tell you where it put it, so you can then easily create the
post that references it.  Just upload the media files first and
then upload the post itself via XML-RPC.

Best regards,
+ Kimmo
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>

On Mon, Aug 25, 2008 at 06:41:05AM -0600, dragonfly at dragonflyeye.net wrote:
> Hey everybody!
> Quick question I'm not getting answered in the forums: I'm creating a site
> for a band that already has a ton of pictures, video and music on their old
> site that they'd like to maintain.  In order for that content to be
> available to place into posts or elsewhere, they're going to need them to
> be associated with an attachment post, as I understand it (haven't really
> played around with WP's CMS stuff).
> So, what I've done is: I placed them all in /wp-content/uploads/2008/08. 
> Now, I need a way to create a batch file that will read all these files and
> create posts to associate them with.  The trouble is that I'm finding that
> creating a post in WP is a lot more complex than I'd thought.  There isn't
> really a simple wp_create_post like there is a wp_create_user function.
> Or am I wrong?  Can anyone point me in the right direction to get this ball
> rolling?
> 'preciate the help!
> DragonFlyEye

More information about the wp-hackers mailing list