Skip to content

A simple JavaScript page using the WordPress REST API to retrieve and write data from and to WordPress

License

Notifications You must be signed in to change notification settings

smartcatdev/WordPress-REST-API-Sample-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress REST API Demo Application

This small project shows how to use JavaScript to retrieve data from a WordPress site using the REST API.

Before loading index.html, open includes/app/main.js and edit the REST_URL constant value to your own site your URL should be the homepage URL of your WordPress site followed by wp-json http://yoursite.com/wp-json/

This project uses mustache.js for templating the output. This is not necessary, as you can choose to print the response directly from the .done() method of the request

About

A simple JavaScript page using the WordPress REST API to retrieve and write data from and to WordPress

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published