include_once ("wp-blog-header.php");header('Content-Type: text/html; charset=iso-8859-1');$response = wp_remote_get('http://www.otroservidor.com/wp-json/wp/v2/posts/');$posts = json_decode(wp_remote_retrieve_body( $response ));print_r($posts);
No hay comentarios:
Publicar un comentario