open kadamwhite/wordpress-rest-api#114

CPT support is not working with api v2

alexvandervegt

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.

kadamwhite

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!

alexvandervegt

@jasonphillips got this work on his APIv2 branch:

https://github.com/jasonphillips/wordpress-rest-api/tree/APIv2