This route works on a localhost:
http://localhost:8888/wordpress/?rest_route=/wp/v2/posts
Probatum est.
Showing posts with label REST. Show all posts
Showing posts with label REST. Show all posts
18 September, 2019
08 May, 2018
Research WordPress REST API
Research for the next semester's classes on the WordPress REST API.
Learn web code: WP REST API
Headless WordPress Sample
The next tutorial is more beginner oriented. From WP install on MAMP to a REST API introduction to the jSon objects - and a practical implementation of JavaScript in a theme, plus sevearal usefull plugins. The video will show how to get the jSon, but not how to implement it via AJAX. That's for "the next video". Parbleu!
The videos above hinted at a solution. On WordPress I used a plugin in order to create a child theme. Then the JavaScript / jQuery was added, and I developed an AJAX solution that would fetch the jSon data.
Subscribe to:
Posts (Atom)