WordPress Data and Flash Through PHP and XML
by Carlos Pinho, June 19th, 2007

Via Jonny Mac Blog:

Tim Wilson has just posted PressConnect, a “PHP script which interigates a WordPress database and returns posts, pages, and creates menus in an XML format.”

Tim’s site/blog runs a completely Flash front-end using WordPress as the content management system, so he has some experience making Flash and WordPress work together. You can even see the normal WP install at this URL.

On his PressConnect page he explains the necessary process of retrieving the data from the WP database and using PHP to format it as XML. This concept isn’t exactly new, but Tim has done everyone researching the topic a favor by explaining the process in detail, creating a diagram, and posting some of the PHP code which interfaces with WP. Just another example of the Flash community giving back.

For other takes on the same idea see Arpit’s blog Code Zen and Brendan Dawes’ wp-xml file (link to the file is at the very end of the post).

Brgds,
CP


ShareThis

7 Responses to “WordPress Data and Flash Through PHP and XML”

  1. BobBarker Says:

    Was he aware that WordPress already supports XML-RPC out of the box?

  2. PantsAreForTheWeak Says:

    Forgive my ignorance, but what does this have over using the xml-rpc gateway?

  3. Jon MacDonald Says:

    @BobBarker: I’m not sure if Tim Wilson was aware, but I am, which is why I included a link to Arpit’s solution, which uses XML-RPC. But for really simple uses (and beginners) the simple PHP XML solution works great.

  4. cpinho Says:

    Tnx for the explanation John.

  5. NP Says:

    Following the fluent and sharp design, we started to shape a simplified Flash “add-on” that will render visually specific posts or pages from our host WordPress-based websites. The focus of the task was to change as little (if any) of the original structure of the original WordPress installation. In fact the only change made is a small irrelevant line of code in the RSS feed generator of WordPress. To put it in a non technical terms

    http://www.nastypixel.com/prototype/wordpress-flash-front-end/

  6. coldy Says:

    This is my take a Flash Blog using Pressconnect.
    It was actually really easy to get wordpress firing out XML. I didnt really look at the RPC thing, Im a designer/developer and it looked a little more full-on than pressconnect.
    Anyway its WIP but will go live on the root domain sometime in the near future.

    http://www.n8w.co.uk/WIP/WordPressFlash/

  7. Reuben Says:

    I have just developed an AS3 wrapper for the WordPress XML-RPC API if anyone is interested in making flash front-ends for WordPress (and doesn’t have the time to build their own!)
    http://blog.absentdesign.com/?page_id=22

Let leave a Comments for this post.

Close