views:

87

answers:

2

Hey!

I am planning on developing an iPhone App for a website, powered by Wordpress.

Where can/should I start codewise when developing an app for such sites?

Should I use Wordpress' API, or should I access the (MySQL) database directly?

I am very open for ideas.

Thank you.

+4  A: 

Hi, how about taking a look at the WordPress Iphone Open Source project?

// Jakob

jakob
That's a site for the Wordpress App.
Emil
Yes, and you asked where to start. I guess, since you are using Wordpress, you could start of by looking at the code in the app?
jakob
That's true :) Thanks.
Emil
+1  A: 

One option would be to set up a plugin and use that as an interface between the app and your site.

Cam
@incrediman A plugin for Wordpress, you mean? I am not that good at PHP and such. Interface between.. - what do you mean?
Emil
Yes. As I understand your problem, you want to make your (client's) wordpress site's data/database so you can access it through an app you'll be developing. What I'd suggest is to create a plugin for wordpress that will expose an interface through which you can communicate with your site via POST/GET. More specifically, you'd create a wordpress plugin that would take in POST/GET requests, and output data about your site. In that sense the plugin could act as communication layer between your site and your app. However if you're not great with PHP this probably is not the route to go...
Cam
No, this should actually be a pretty simple script. I might try that too, actually! Thanks :)
Emil
I ended up using this method as it is much easier to get the contents of the post from something *in contact* with the Wordpress system (a plugin). Thank you, @incrediman :)
Emil
No problem, happy to help. That's why I suggested it actually - it can be quite annoying to try interfacing with wordpress sometimes, but I've had the best luck with this in the past.
Cam