WP-JSON

WP-JSON is a plugin that easily enables you start syndicating your blog entries using JSON. This enables third party integration with JavaScript solutions cross domain without use of proxy. Supports JSON-callback parameter. If mod_rewrite permalinks are enabled call /feed/json/?callback=METHOD and if mod_rewrite is disabled call using ?feed=json&callback=METHOD

Inspired by this blog post but now bundled as a plugin and with support for PHP installations lower than 5.2.0.

Example of usage when activated

[sourcecode language='javascript']
$(function(){
$(“body”).append(‘

Loading JSON

‘);
$(“#wp-json”).css({
‘position’ : ‘fixed’,
‘right’ : ’0px’,
‘top’ : ’0px’,
‘background’ : ‘#f00′
});
$.getJSON(‘http://frontendbook.com/feed/json/?callback=?’, function(json){
var result = ‘

‘;
$(“#wp-json”).css({
‘background’ : ‘#fff’
}).html(result);
});
});
[/sourcecode]

4 Responses to WP-JSON

  1. Pingback: WP-JSON - JSON Syndication for your WordPress Blog | Front-End Book

  2. Pingback: Die Beste Aller Zeiten - Eike Pierstorff : Blog Archive : JSON Feed for Wordpress

  3. Pingback: WP-JSON - JSON Syndication for your WordPress Blog | Front-End Book

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>