{"id":6745,"date":"2009-09-16T17:50:46","date_gmt":"2009-09-16T17:50:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sitewide-tag-suggestion\/"},"modified":"2009-09-18T16:31:17","modified_gmt":"2009-09-18T16:31:17","slug":"sitewide-tag-suggestion","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/sitewide-tag-suggestion\/","author":2881701,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"Sitewide Tag Suggestion","header_author":"Boone Gorges","header_description":"","assets_banners_color":"","last_updated":"2009-09-18 16:31:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/dev.commons.gc.cuny.edu","header_author_uri":"http:\/\/teleogistic.net","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1804,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[9857,57266,609,2255],"plugin_category":[51,57],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-6745","plugin","type-plugin","status-publish","hentry","plugin_tags-post-tags","plugin_tags-sitewide-tags","plugin_tags-tags","plugin_tags-wpmu","plugin_category-multisite","plugin_category-taxonomy","plugin_committers-boonebgorges"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sitewide-tag-suggestion.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin inserts a link into the Post Tags box on the post edit screen that allows users to select from the most popular tags on the entire WPMU install.<\/p>\n <p>Developed for the CUNY Academic Commons. Visit http:\/\/commons.gc.cuny.edu to learn more about this bitchen project.<\/p>\n\n<!--section=installation-->\n<p>This plugin is only compatible with WPMU 2.8+! Donncha's Sitewide Tags plugin is required as well.<\/p>\n <ol>\n<li>Drop the plugin file (sitewide-tag-suggestion.php) into mu-plugins\/ <\/li>\n<li><p>Open wp-admin\/admin-ajax.php. (Back it up first! You're hacking the core!) Find the line that says case 'add-comment' : Add the following stuff, <strong><em>making sure to change the number following \n'blog_id' =&gt; to the numerical blog id of your Sitewide Tags blog.<\/em><\/strong><\/p>\n <pre><code>\/\/ Additions for sitewide tag suggestions begin here  case 'get-tagcloud2' : if ( !current_user_can( 'edit_posts' ) )     die('-1');  if ( isset($_POST['tax']) )     $taxonomy = sanitize_title($_POST['tax']); else     die('0');  $tags = get_terms_custom( $taxonomy, array( 'number' =&gt; 45, 'orderby' =&gt; 'count', 'order' =&gt; 'DESC', 'blog_id' =&gt; 28 ) );  if ( empty( $tags ) )     die( __('No tags found!') );  if ( is_wp_error($tags) )     die($tags-&gt;get_error_message());  foreach ( $tags as $key =&gt; $tag ) {     $tags[ $key ]-&gt;link = '#';     $tags[ $key ]-&gt;id = $tag-&gt;term_id; }  \/\/ We need raw tag names here, so don't filter the output $return = wp_generate_tag_cloud( $tags, array('filter' =&gt; 0) );  if ( empty($return) )     die('0');  echo $return;  exit; break;  \/\/ End additions <\/code><\/pre><\/li>\n<li>Open wp-admin\/edit-form-advanced.php. (Have you backed it up yet?) Find the line that says<\/li>\n<\/ol>\n <p>&lt;a href=&quot;#titlediv&quot; class=&quot;tagcloud-link&quot; id=&quot;link-\"&gt;<\/a><\/p>\n <p>First, if you'd like to change this line's text to more clearly distinguish between the current blog's tags and the sitewide tags, you might consider replacing that line with the following:<\/p>\n <p>&lt;a href=&quot;#titlediv&quot; class=&quot;tagcloud-link&quot; id=&quot;link-\"&gt;<\/a><\/p>\n <p>After that line, add the following markup, which creates a link for your sitewide tags. You'll want to change my link text (\"...all Commons blogs\") to reflect your own site:<\/p>\n <p>&lt;a href=&quot;#titlediv&quot; class=&quot;tagcloud2-link&quot; id=&quot;link2-\"&gt;<\/a><\/p>\n <p>*\/<\/p>\n\n<!--section=faq-->\n<h4>Why do I have to hack the core so much to make the plugin work?<\/h4>\n <p>Mostly because I am terrible at plugin programming. Suck it up. Remember, though, that these hacks will have to be reimplemented if you upgrade to a new version of WPMU.<\/p>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n <ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Creates &quot;choose from most popular sitewide tags&quot; function on post edit screen","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6745"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/boonebgorges"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6745"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6745"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6745"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6745"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6745"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}