How to get all post of custom post type by rest api?
The REST API supports grabbing a maximum of 100 posts at a time, so you’ll have to make an additional call for every 100. Start with wp_remote_get() for 100 posts. While you’re at it, go ahead and retrieve the body of this page and decode it: $transcripts = wp_remote_get(‘http://example.com/wp-json/wp/v2/transcript/?per_page=100’); $transcriptsBody = wp_remote_retrieve_body($transcripts); $transcriptsDecoded = json_decode($transcriptsBody, … Read more