Envato Marketplace Feeds is a Wordpress plugin which will let you easily add feeds from the Envato Marketplaces to your
blog using the new Marketplace API. There is a full settings page which lets you
dynamically create a list of feeds with different information. Then in your blog all you have to do is call the function emf_getfeed($feedID); and input you
feed ID. You can create as many different feeds as you want.
Installation
After you’ve downloaded and extracted the files:
- Check you have PHP 5+ running on your server. Otherwise this plugin won’t work.
- Upload the complete ‘evanto-marketplace-feeds’ folder to the ‘/wp-content/plugins/’ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- You’re done.
You can access the EMF Settings via the ’settings’ menu to add your feeds.
Version History
v0.1 – Release Version
v0.2 – Bug fix: Activation not creating table.
v0.3 – Added support for thumbnails and images.
Usage
There are two ways to use this plugin. To get an already fomratted version of a feed:
1. Create your feeds in the EMF Settings page and remeber the ID for that feed.
2. Add this function where you want your feed to appear in your Wordpress theme
<?php if(function_exists('emf_getfeed')) emf_getfeed($feedID); ?>
3. Replace the $feedID with the ID from your feed.
You can also get the XML element so you can format your own feed:
1. Create your feeds in the EMF Settings page and remeber the ID for that feed.
2. You can now use $xml to output the feed in your own format. For example:
<?php
if(function_exists('emf_getfeed')){
$xml = emf_getfeed($feedID, true);
$xmlNodes = $xml->{'popular'}->{'items-last-week'}->{'items-last-week'};
$html = '<ul id="emf-'. $feed->type .'">';
foreach($xmlNodes as $element){
$html .= '<li><a href="'. $element->url .'">'. $element->item .'</a><br />';
$html .= '<span>'. $element->sales .' sales</span>';
}
$html .= '</ul>';
}
?>
Download
Download Envato Marketplace Feeds now via Wordpress.org: