Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting posts from other Wordpress sites #7

Open
viktorsmari opened this issue Jul 9, 2019 · 1 comment
Open

Getting posts from other Wordpress sites #7

viktorsmari opened this issue Jul 9, 2019 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@viktorsmari
Copy link
Member

viktorsmari commented Jul 9, 2019

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

@viktorsmari viktorsmari added the documentation Improvements or additions to documentation label Jul 9, 2019
@gautinils
Copy link
Contributor

The examples show posts that are not longer found on the site, and not the newsfeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants