WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Custom post type support in get_post and get_page (2 posts)

  1. Koshirosan
    Member
    Posted 3 years ago #

    Just thought I'd leave this here as it had me stumped for a while - the post_type variable DOES exist for get_post and get_page, it's just not mentioned in the documentation for these methods (presumably too recent an addition?) So to request a post from a custom type called 'info':
    /?json=get_post&id=104&post_type=info

    Serious thanks for this plugin, it really is a huge boost to WordPress.

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

  2. dphiffer
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for catching that -- fixed in 1.0.7.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags