Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save luisgagocasas/2e872c4331ed7b75aeb6 to your computer and use it in GitHub Desktop.
Save luisgagocasas/2e872c4331ed7b75aeb6 to your computer and use it in GitHub Desktop.
var items = "";
$.getJSON( "http://localhost/wordpress/?page_id=246&json=1", function(data) {
for (var i = 0; i < data.page.comments.length; i++) {
items += '<p>'+data.page.comments[i].name+'</p>>';
}
$("#lista_comentarios").html(items);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment