All you have to do after enabling it is to watch it work!
If you dont see any tag description in your frontend tag pages, make sure your wordpress theme is displaying them!
More information can be found here:http://www.bowierocks.com/auto-describe-taxonomies/ Version: 1.0.4 Author: itscoolreally Author URI: http://www.bowierocks.com/ */ register_activation_hook( __FILE__, 'adt_auto_describe_tags_activate' ); register_deactivation_hook( __FILE__, 'adt_auto_describe_tags_deactivate' ); define('CACHE','cache'); define('CACHE_AGE', 86400 * 7); function adt_auto_describe_tags_activate() { global $wpdb, $wp_version; if (version_compare($wp_version, "3.0.1", "<")) { $error = "Your version of Wordpress is " . $wp_version . " and this plugin requires at least version 3.0.1 -- Please use your browser's back button and then upgrade your version of Wordpress"; wp_die($error); } add_option('adt_auto_describe_tags_described', array(), '', 'yes'); add_option('adt_auto_describe_cats_described', array(), '', 'yes'); add_option('adt_auto_describe_tags_exclude', '', '', 'yes'); add_option('adt_auto_describe_cats_exclude', '', '', 'yes'); add_option('adt_auto_describe_tags_advertise', 0, '', 'yes'); } function adt_auto_describe_tags_deactivate() { } add_action('admin_menu', 'adt_auto_describe_tags_menu'); add_action('wp_footer', 'adt_auto_describe_tags_advertise'); function adt_auto_describe_tags_menu() { add_menu_page('Auto Describe Taxonomies', 'Auto Describe Taxonomies', 'administrator', __FILE__, 'adt_auto_describe_tags_menu_html',plugins_url('favicon.ico', __FILE__)); add_action('admin_init', 'adt_auto_describe_tags_register_mysettings'); } function adt_auto_describe_tags_register_mysettings() { //register our settings register_setting('adt_auto_describe_tags_group', 'adt_auto_describe_tags_exclude'); register_setting('adt_auto_describe_cats_group', 'adt_auto_describe_tags_exclude'); register_setting('adt_auto_describe_tags_group', 'adt_auto_describe_tags_advertise'); } function adt_auto_describe_tags_menu_html() { ?>

Settings

Excluded tags:
Coma separated tag list to be excluded. Ex.: api,google
Total tags described:
Described tags:
Excluded categories:
Coma separated categories list to be excluded. Ex.: api,google
Total categories described:
Described categories:
Advertise: >Yes / > No

ID; $post_tags = get_the_tags($postid); $my_tags = get_option('adt_auto_describe_tags_described'); $ignore_tags = explode(',',strtolower(get_option('adt_auto_describe_tags_exclude'))); //dan left this out $skip = 0; //dan also left out the following sanity check if(is_array($post_tags) && count((array)$post_tags)>0) foreach ($post_tags as $tag) { if ( !$skip && empty($my_tags[$tag->name]) && !in_array(strtolower($tag->name), $ignore_tags)) {//this tags was never described. lets describe it $skip = 1; $my_tags[$tag->name] = $tag->term_id; $term = $tag->name; $topic = '/en/'.strtolower(str_replace(' ','_',$term)); $url = 'http://api.freebase.com/api/experimental/topic/basic?id='.$topic; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $jsonresultstr = curl_exec($ch); curl_close($ch); $resultarray = json_decode($jsonresultstr, true); if (!empty($resultarray[$topic]['result']['description'])) { wp_update_term($tag->term_id, 'post_tag', array('description' => $resultarray[$topic]['result']['description'])); } update_option('adt_auto_describe_tags_described', $my_tags); } } if (!$skip) $post_cats = get_the_category($postid); $my_cats = get_option('adt_auto_describe_cats_described'); $ignore_cats = explode(',',strtolower(get_option('adt_auto_describe_cats_exclude'))); $tmp = array(); foreach($ignore_cats as $value) $tmp[] = trim($value); $ignore_cats = $tmp; //and he left out this following sanity check if(is_array($post_cats) && count((array)$post_cats)>0) foreach ($post_cats as $tag) { if (!$skip && empty($my_cats[$tag->name]) && !in_array(strtolower($tag->name), $ignore_cats)) {//this cats was never described. lets describe it $skip = 1; $my_cats[$tag->name] = $tag->term_id; $term = $tag->name; $topic = '/en/'.strtolower(str_replace(' ','_',$term)); $url = 'http://api.freebase.com/api/experimental/topic/basic?id='.$topic; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $jsonresultstr = curl_exec($ch); curl_close($ch); $resultarray = json_decode($jsonresultstr, true); if (!empty($resultarray[$topic]['result']['description'])) { wp_update_term($tag->term_id, 'category', array('description' => $resultarray[$topic]['result']['description'])); } update_option('adt_auto_describe_cats_described', $my_cats); } } { } return $content; } function adt_auto_describe_tags_advertise() { if (get_option('adt_auto_describe_tags_advertise') == 1) { echo("

Page optimized by Auto Describe Taxonomies - Bowie, TX - The Experience!

"); } } ?>