open kadamwhite/wordpress-rest-api#114
The following does not work with the v2 api:
wp.posts().type( type_name ): get posts of custom type type_name
When I read this article ( http://scottbolinger.com/custom-post-types-wp-api-v2/ ) it's clear why, the API endpoint changed.
Correct, this is a known issue. Thanks for reporting, in hoping to have a new release out by new year's with much more support for v2!
@jasonphillips got this work on his APIv2 branch:
https://github.com/jasonphillips/wordpress-rest-api/tree/APIv2
The following does not work with the v2 api:
When I read this article ( http://scottbolinger.com/custom-post-types-wp-api-v2/ ) it's clear why, the API endpoint changed.
Correct, this is a known issue. Thanks for reporting, in hoping to have a new release out by new year's with much more support for v2!
@jasonphillips got this work on his APIv2 branch:
https://github.com/jasonphillips/wordpress-rest-api/tree/APIv2