Monthly Archives: June 2010

WordPress JSON API Plugin

WordPress provides an RSS feed for just about every part of the website. You can get XML output for anything, from posts to tags to comments. But what if you’re working with JavaScript? Wouldn’t it be nice to have a JSON option? That’s what the JSON API plugin does. Appending ?json=1 to the end of any WordPress URL will work like the RSS option, but the feed will be formatted as JSON. It can even be used to submit comments, if you invoke the right method.

This plugin was created for The Museum of Modern Art, whose weblog Inside/Out appears within an existing structure built with Ruby on Rails. Instead of reimplementing the site templates as a WordPress theme, we opted for a Rails front-end that displays content served from a WordPress back-end. JSON API provides the necessary interface for retrieving content and accepting comment submissions.

I like Chris Coyier’s suggestion of using it in conjunction with the jQuery UI Autocomplete component in order to add a Google Suggest-type feature to your search form.

WordPress JSON API Plugin [Digging into WordPress]


Bandcamp: Sell Your Music Online

Are you a musician looking for a way to sell your work online? Bandcamp is a new and appealing solution. They provide a website where people can stream your albums’ tracks, and then buy them for the price you set. Bandcamp takes an uncompressed…

Loading JavaScript Asynchronously

BuySellAds and Google Analytics, in an attempt to make the internet faster, recently changed the code snippets they use for serving ads and tracking visitors, respectively, to be non-blocking and asynchronous. This means that the scripts won’t hold up the rendering of your pages…

BlogBuzz June 5, 2010

AT&T Axes Unlimited Data for iPhone Users

AT&T will no longer be providing the already overpriced $30/month unlimited data plan to new customers. Their new plans are $15/month for 250MB of data, and $25 for 2GB. Tethering is $20/month extra, and is only available for the $25 plan. (So you’ll have…

Debugging WordPress

When working on a plugin or theme, have you ever went to your browser to test some changes, only to be greeted by the dreaded blank white screen? Sometimes the bug in your code is immediately apparent, but what about the times when it’s…