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?