Newbie: How to parse the data returned
-
I’m really new to this. I have the plugin installed and it’s apparently working but after a couple of hours of looking, I can’t find a simple snippet on how to display/parse what I get.
My goal is to be able to pull the recent posts from a WordPress site and display them on a non-wordpress site.
I have this jquery as a test (using 1.7.2):
$(document).ready(function(){ $("button").click(function(){ $.getJSON("https://www.thumbslinger.com/wordpress/api/get_recent_posts/",function(result){ $.each(result, function(i, content){ $("div").append(content + " "); }); }); }); });
Putting the above url in the url bar returns the test posting, I can’t seem to get it parsed and placed, in this case, to a div.
I’m missing something somewhere but I new enough to json to not be sure what.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Newbie: How to parse the data returned’ is closed to new replies.