Dhaulagiri Dhaulagiri - 1 month ago 7x
JSON Question

Return comments with WP-API Post data

I'm using the WP-API plugin as a RESTful API to my Wordpress site. I want the comments associated with a post to return from the

endpoint. The docs indicate that this is possible by passing a
filter, however I can't get this to work. I've tried the following with no success:



I do know that http://climbingnarc.com/wp-json/posts/24001/comments works, but I don't want to have to make a separate request just for the comment data.

Is there a correct way to use this filter so that comments are returned with the post data?


I opened an issue on Github about this and it was marked as Enhancement, so I'm assuming this just doesn't work at this point