I bought a site a couple of months ago that had some kind of strange autoposting going on. There were about 50 posts loaded up just with a keyword within a shortcode, and when the posts went live they would end up being a collation of web resources (usually PDF documents and images) generated from the keyword. The plugin that was doing this turned out to be Content Revenge, which was basically returning Yahoo search results embedded onto the blog via the Yahoo BOSS API. It’s a great plugin for generating content that will get some long tail searches, so I wanted to show how you could create something similar using the Instant Curator plugin.
Building the “Content Revenge” Plugin w/ Instant Curator
Most of the posts on the “Content Revenge” blog I bought were filled with primarily images and PDF files. Here’s part of what an average Content Revenge listing looks like:
To be fair, Content Revenge also puts in a lot photos with short descriptions, but these can be fairly well replicated with both the ic_bing and the ic_flickr shortcodes already in Instant Curator. So here we want to focus on nailing the part of Content Revenge that spits out a bunch of related PDF files along with thumbnails and short descriptive blurbs. Building off the earlier Scribd Instant Curator modification we already made (http://wpguidance.com/78/instant-curator-plugin-making-a-scribd-shortcode-for-wordpress/), we need to output something that creates a list of entries instead of just returning one embeddable document.
Using Instant Curator’s Loop Function
Let’s say that we want our shortcode to return 4 items in the list. To do so, you need to instruct Instant Curator to “loop” 4 times in the shortcode’s loop setting:
In other words, just set up your API call to call one of whatever you want, and then use Instant Curator to loop however many times for the number of items you want back.
We use the exact same API request from Scribd as before:
We just need to tweak the template editor to instead of giving an iframe of one document retrieves a thumbnail and description of the document requested:
Since our loop setting is set for 4, everytime we call our custom shortcode we’ll get back 4 results. Now we can use our custom scribd_list shortcode (or whatever you want to call it) on any keyword and get back a listing like this: (following uses keyword=”php api”)