Sitewide Tag Suggestion
Creates "choose from most popular sitewide tags" function on post edit screen
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 5947 days ago
Is Sitewide Tag Suggestion abandoned?
Possibly abandoned (last update 5947 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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.
Developed for the CUNY Academic Commons. Visit http://commons.gc.cuny.edu to learn more about this bitchen project.
Installation
This plugin is only compatible with WPMU 2.8+! Donncha’s Sitewide Tags plugin is required as well.
- Drop the plugin file (sitewide-tag-suggestion.php) into mu-plugins/
-
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, making sure to change the number following
‘blog_id’ => to the numerical blog id of your Sitewide Tags blog.// 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' => 45, 'orderby' => 'count', 'order' => 'DESC', 'blog_id' => 28 ) ); if ( empty( $tags ) ) die( __('No tags found!') ); if ( is_wp_error($tags) ) die($tags->get_error_message()); foreach ( $tags as $key => $tag ) { $tags[ $key ]->link = '#'; $tags[ $key ]->id = $tag->term_id; } // We need raw tag names here, so don't filter the output $return = wp_generate_tag_cloud( $tags, array('filter' => 0) ); if ( empty($return) ) die('0'); echo $return; exit; break; // End additions - Open wp-admin/edit-form-advanced.php. (Have you backed it up yet?) Find the line that says
<a href="#titlediv" class="tagcloud-link" id="link-“>
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:
<a href="#titlediv" class="tagcloud-link" id="link-“>
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:
<a href="#titlediv" class="tagcloud2-link" id="link2-“>
*/
Frequently Asked Questions
Why do I have to hack the core so much to make the plugin work?
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.
Review feed
Screenshots
Changelog
0.1
- Initial release