Skip to content

Instantly share code, notes, and snippets.

@benfurfie
Created December 8, 2015 22:53
Show Gist options
  • Save benfurfie/b490ddd8fea49cb69718 to your computer and use it in GitHub Desktop.
Save benfurfie/b490ddd8fea49cb69718 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$.ajax({
url: "http://www.wpjsonapi.dev/wp-json/posts/1"
}).then(function(data) {
$('.title').append(data.title);
$('.content').append(data.content);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment