Envato Affiliate WordPress Plugin

This is a sample page showing the output from the Envato Market Affiliate WordPress plugin.

Download here: https://github.com/dtbaker/wp-envato-affiliate/releases

Screencast here: https://www.youtube.com/watch?v=ULe454Fc1fY


Graphic River “Mountain” search example:

This example shows Graphic River items for the search term Mountain, and the link clicks are attributed to your Impact Radius affiliate account:

<?php
// This is the PHP code example, you can place this in your template file (e.g. at the top of search.php)
if( class_exists( "EnvatoAffiliate" ) ){
   EnvatoAffiliate::get_instance()->show_results( array(
      "search_term" => "Mountain",
      "affiliate_username" => "dtbaker",
      "ir_market_url" => "http://1.envato.market/c/370092/275988/4415",
      "ir_elements_url" => "http://1.envato.market/c/370092/298927/4662",
      "fallback_search" => "River",
      "marketplace" => "graphicriver.net",
      "category" => "all",
      "layout" => "row",
      "item_count" => "6",
      "cache_timeout" => "2",
   ) );
}
?>

or you can use a shortcode:

[envato_affiliate search_term="Mountain" affiliate_username="dtbaker" ir_market_url="http://1.envato.market/c/370092/275988/4415" ir_elements_url="http://1.envato.market/c/370092/298927/4662" fallback_search="River" marketplace="graphicriver.net" category="all" layout="row" item_count="6" cache_timeout="2"]

 


ThemeForest “Creative WordPress” search example:

This example shows ThemeForest items for the search term “Creative” in the “WordPress” category, and the link clicks are attributed to your Impact Radius affiliate account:

<?php
// This is the PHP code example, you can place this in your template file (e.g. at the top of search.php)
if( class_exists( "EnvatoAffiliate" ) ){
   EnvatoAffiliate::get_instance()->show_results( array(
      "search_term" => "Creative",
      "affiliate_username" => "dtbaker",
      "ir_market_url" => "http://1.envato.market/c/370092/275988/4415",
      "ir_elements_url" => "http://1.envato.market/c/370092/298927/4662",
      "fallback_search" => "Theme",
      "marketplace" => "themeforest.net",
      "category" => "wordpress",
      "layout" => "row",
      "item_count" => "6",
      "cache_timeout" => "2",
   ) );
}
?>

or you can use a shortcode:

[envato_affiliate search_term="Creative" affiliate_username="dtbaker" ir_market_url="http://1.envato.market/c/370092/275988/4415" ir_elements_url="http://1.envato.market/c/370092/298927/4662" fallback_search="Theme" marketplace="themeforest.net" category="wordpress" layout="row" item_count="6" cache_timeout="2"]

 


Envato Elements “People” search example:

This example shows 12 items from Envato Elements using the search term “People”. Link clicks are attributed to your Impact Radius affiliate account:

<?php
// This is the PHP code example, you can place this in your template file (e.g. at the top of search.php)
if( class_exists( "EnvatoAffiliate" ) ){
   EnvatoAffiliate::get_instance()->show_results( array(
      "search_term" => "People",
      "affiliate_username" => "dtbaker",
      "ir_market_url" => "http://1.envato.market/c/370092/275988/4415",
      "ir_elements_url" => "http://1.envato.market/c/370092/298927/4662",
      "fallback_search" => "Man",
      "marketplace" => "elements.envato.com",
      "category" => "graphics",
      "layout" => "row",
      "item_count" => "12",
      "cache_timeout" => "2",
   ) );
}
?>

or you can use a shortcode:

[envato_affiliate search_term="People" affiliate_username="dtbaker" ir_market_url="http://1.envato.market/c/370092/275988/4415" ir_elements_url="http://1.envato.market/c/370092/298927/4662" fallback_search="Man" marketplace="elements.envato.com" category="graphics" layout="row" item_count="12" cache_timeout="2"]

 


Legacy Affiliate Example:

This example shows the legacy ?ref=X affiliate system (if you haven’t yet obtained access to an Impact Radius account). This example searches CodeCanyon for the term “Membership” in the “WordPress” category and returns 6 results.

<?php
// This is the PHP code example, you can place this in your template file (e.g. at the top of search.php)
if( class_exists( "EnvatoAffiliate" ) ){
   EnvatoAffiliate::get_instance()->show_results( array(
      "search_term" => "Membership",
      "affiliate_username" => "dtbaker",
      "ir_market_url" => "", // leave empty to fall back to legacy ?ref=X affiliate links.
      "ir_elements_url" => "", // leave empty to fall back to legacy ?ref=X affiliate links.
      "fallback_search" => "WordPress",
      "marketplace" => "codecanyon.net",
      "category" => "wordpress",
      "layout" => "row",
      "item_count" => "6",
      "cache_timeout" => "2",
   ) );
}
?>

or you can use a shortcode:

[envato_affiliate search_term="Membership" affiliate_username="dtbaker" ir_market_url="" ir_elements_url="" fallback_search="WordPress" marketplace="codecanyon.net" category="wordpress" layout="row" item_count="6" cache_timeout="2"]