Support » Plugin: JSON API » [Plugin: JSON API] Custom Content Types

  • hey Dan, just wanted to say I added support to your plugin for calling custom content types. I am using it to deliver JSON to Android apps, and wanted to be able to create content types that would feed to the app without showing on the site.

    Can I submit this to you for inclusion? It’s a very simple condition in one file.

    LOVE this plugin. Saved me hours in writing my own!!!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dphiffer


    Hi Mark,

    This is great to hear! I have some big changes in the works for my forthcoming 1.0 release. Please take a look at trunk version and see if your changes can be integrated there:

    You can view the code here:

    Or check it out using svn:
    svn co json-api

    That said, I’m happy to accept code submissions. You can email me at: dan(a)


    Plugin Author dphiffer


    Update: 1.0 released. I still haven’t looked into custom post types or taxonomies (or menus), but I’m interested in including them.

    Cool, I have been hacking on Android all week, but will check out the trunk and new version in the next couple of days.


    I saw in the changelog that support has been added.

    While it works for for many of the functions, unfortunately it doesn’t seem there’s a function to directly get a custom post type. Neither get_post or get_page work for this purpose.

    For semantics, it should work properly on get_posts.

    Looking though the trunk code, I’m not sure why the get_post function is filtering out only on actual “post” types.



    Hi Dan and MegaMarkHarris.

    I really want to know how to expose data in json format for custom post types.

    I´m working on my final project at my college and I´m using custom post types to create a specific type of content.

    My project is to use WP as tool to manage Thesis and Dissertations, so Custom Posts will be realy helpful to struct data for this kind of content, like Author, Title, Abstract, keywords, etc.
    I´m researching about dublin core (

    Tks and Congratulations.

    Flávio Araújo

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: JSON API] Custom Content Types’ is closed to new replies.