Importing Artistdata events to WordPress

Fascinating project on the go. A client who prefers to use Artistdata to manage his Show dates would like, in a perfect world, to fill his info into Artistdata but have his shows imported into WordPress from his Artistdata XML feed. Once in WP, they can be commented upon; hence the import, rather than just parsing the XML with PHP and displaying. It’s proving an intriguing challenge to get working and, of course, it needs to be done yesterday!

Has anybody reading this done this before? It’d be ideal if there was an existing plugin to take care of this. If not, I guess I’ll have to commit it to a plugin, once I figure it out….

This entry was posted in asides, WordPress. Bookmark the permalink.

2 Responses to Importing Artistdata events to WordPress

  1. Alex Hertz says:

    I’ve been struggling with the same thing for about a week now. Unfortunately going into it with very little knowledge about XML so I don’t have my hopes up.

    Best of luck though…looking forward to one of us being potentially successful!

    • TrumpetBoy says:

      It’s not too hard to display the info programmatically from the XML feed; PHP’s SimpleXML is your friend there. There are a few online tutorials that’ll help you with that. Having grabbed the XML info and converted to variables, it shouldn’t be too much hassle to manipulate the wp_insert_post() routine to get them into WP. That’s my plan, anyway – setting up a Custom Post Type for Concerts and importing to that. Of course, the Codex info about wp_insert_post(), specifically about dealing with Post Meta Data, is a bit scant. Hopefully Google will be my friend there too!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>