WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Custom Content Types (6 posts)

  1. MegaMarkHarris
    Member
    Posted 4 years ago #

    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!!!!!

    http://wordpress.org/extend/plugins/json-api/

  2. dphiffer
    Member
    Plugin Author

    Posted 4 years ago #

    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:
    https://plugins.trac.wordpress.org/browser/json-api/trunk

    Or check it out using svn:
    svn co http://plugins.svn.wordpress.org/json-api/trunk json-api

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

    Thanks,
    -Dan

  3. dphiffer
    Member
    Plugin Author

    Posted 4 years ago #

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

  4. MegaMarkHarris
    Member
    Posted 4 years ago #

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

    Thanks!!!!

  5. kientran
    Member
    Posted 4 years ago #

    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.

  6. flaviowd
    Member
    Posted 3 years ago #

    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 (http://dublincore.org/)

    Tks and Congratulations.

    Flávio Araújo
    Brazil

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags