Now I’m trying to create a WordPress plugin using REST API to collect the blog post content. I’m trying to add "/wp-json/wp/v2/posts" at the end of people’s WordPress website to load the json data of their post properties. But some of the sites work, some of them don’t. Why does that happen?
The example:
https://profesorjitaruionel.com/wp-json/wp/v2/posts (this one works)
https://raptorpersecutionuk.org/wp-json/wp/v2/posts (this does not)
If that is not the way to know the json data of the site’s post properties, can someone tell me the correct way to do that? Thanks a lot!!!
2
Answers
That second website is a
wordpress.com
website, and not the open source version. Those can be targeted via the wordpress.com API and by doing that for your example the endpoint would be https://public-api.wordpress.com/rest/v1.1/sites/raptorpersecutionuk.org/posts/You have to create 2 plugins one for receiver side and second for sender site