Skip to content

Instantly share code, notes, and snippets.

Last active Sep 19, 2018
What would you like to do?
Wordpress loop Posts using jQuery
<script src=""></script>
<h1>Show Adds via JSON Rest Query</h1>
(function($) {
$.getJSON("",function(data) {
$.each(data, function(k, v) {
$('body').append( '<h3>' + v.title.rendered + '</h3>' );
$('body').append( '<p>' + v.content.rendered + '</p>' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment