Retrieves items from Envato Marketplace's using the search API and displays the results as an unordered lists of linked 80px thumbnails.
The Envato Marketplace Search plugin retrieves items from one or all Envato Marketplace's using the search API and displays the results as an unordered lists of linked 80px thumbnails. On your blogs search page add <?php if ( function_exists( 'envato_marketplace_search' ) ) { envato_marketplace_search(); } ?>. The function takes in 8 optional arguments ( limit, site, type, query, referral, search, cache, & echo ). Query is automatically built using the get_search_query() function but you could pass in your own query if you really felt the need. Search defaults to true and means that you want results only on search pages (advanced use for those who understand the application). Cache is for situations where you plan on setting the query manually and want to limit the API calls. Use cache with CAUTION, each query will be cached in your database if set to true (default is false). Below are examples of how you would use the plugin to return search results.
These two are equivalent to each other:
envato_marketplace_search( 'limit=2&site=themeforest&type=site-template&referral=valendesigns' );
envato_marketplace_search( array( 'limit' => 2, 'site' => 'themeforest', 'type' => 'site-template', 'referral' => 'valendesigns' ) );
Requires: 3.0 or higher
Compatible up to: 3.1.4
Last Updated: 2011-3-30
Downloads: 671
Got something to say? Need help?