Open viktorsmari opened 5 years ago
We can get posts from Wordpress (version 4.7 and later) via REST interface.
See one post example: https://piratar.is/wp-json/wp/v2/posts?per_page=1
See ALL posts: https://piratar.is/wp-json/wp/v2/posts
This can help us get the latest posts from multiple sites via JavaScript on page load.
https://developer.wordpress.org/rest-api/reference/#rest-api-developer-endpoint-reference
The examples show posts that are not longer found on the site, and not the newsfeed.
We can get posts from Wordpress (version 4.7 and later) via REST interface.
See one post example: https://piratar.is/wp-json/wp/v2/posts?per_page=1
See ALL posts: https://piratar.is/wp-json/wp/v2/posts
This can help us get the latest posts from multiple sites via JavaScript on page load.
Documentation
https://developer.wordpress.org/rest-api/reference/#rest-api-developer-endpoint-reference