Fetching private posts or custom post types via WP-API with basic authentication
I’ve installed WP-API along with Basic Auth. I’m able to fetch cpt posts using curl http://siteurl.com/posts?type={post-type} However, if I change a post to private, it is no longer returned. This is true even when sending the author’s user credentials with either an auth header or simply using curl http://username:[email protected]/posts?type={post-type} Is this by design? Am I … Read more