[wp-hackers] Building a JSON API style plugin

John Blackbourn johnbillion+wp at gmail.com
Wed Nov 2 15:55:15 UTC 2011


On 2 November 2011 15:51, Tom Barrett <tcbarrett at gmail.com> wrote:
> Any glaring WordPress issues there? I appreciate there is no sanity or
> taint checking, but it seems that WordPress has a lot of tricks under it's
> hood and I'm trying not to rewrite the wheel.

You might be better off implementing a JSON feed using WordPress'
add_feed() function. There are a few existing JSON feed plugins [1]
and they can work for individual objects (eg. singular posts) as well
as archives.

John

[1] http://www.google.co.uk/search?q=wordpress+json+feed


More information about the wp-hackers mailing list