• 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.

    https://www.ads-software.com/extend/plugins/json-api/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: JSON API] Custom post type support in get_post and get_page’ is closed to new replies.