Last active
July 5, 2017 09:17
-
-
Save afiru/c46c211c57169473fab5b0616558870b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function() { | |
urlname ="<?php home_url('/'); ?>wp-json/wp/v2/posts?_embed&categories="+ categories; | |
$(function() { | |
$.each(results, function(i, item) { | |
$("ul#mylist").append( | |
"<li>"+ img_url + "<p class='title'>" + item.title.rendered + "</p></li>" | |
); | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment