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….
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!
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 aboutwp_insert_post(), specifically about dealing with Post Meta Data, is a bit scant. Hopefully Google will be my friend there too!