JavaScript for WordPress › Forums › The WP REST API › function error in API Ajax demo? › Reply To: function error in API Ajax demo?
January 24, 2018 at 3:27 am
#39286
Keymaster
Okay, a couple troubleshooting tips to start..
1. Is this the example code or code you typed out? Does the example code cause the same problem without any changes?
2. Double check the request is being made to the correct URL and that URL returns what you expect in the browser.
The problem is the posts are not being grabbed, but there are a few steps at which this problem could occur.