How to Insert a Tag Cloud in the Write Post area of WordPress 2.3′s Administration

This article applies to WordPress 2.3 only and was written in the hopes of getting the attention of WordPress developers and help convince them that they need to add a similar feature to the next release of WordPress. Before following the instructions below, make sure to BACK UP your core files.

Disclaimer: This is a WordPress hack and is therefore NOT officially supported by WordPress. Use at your own risk.

The first step is to login to your Administration page.

Upon logging in, go to Manage then click on the Files submenu.

Manage

At the bottom, you will see a section named Other Files. On the field in that section, type in wp-admin/edit-form-advanced.php then click on Edit file ยป.

Edit File

You will then see on the main file editor the code corresponding to the file edit-form-advanced.php.

The Code

Scroll down and look for the ff. code:

<fieldset id="tagdiv">
<legend><?php _e('Tags (separate multiple tags with commas: cats, pet food, dogs)'); ?></legend>
<div><input type="text" name="tags_input" class="tags-input" id="tags-input" size="30" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /></div>
</fieldset>

Just after this code, paste the ff. code after correcting the spacing of the tags:

<!-- Begin Tag Cloud Insertion -->
<div id="tagdiv">
<div><?php wp_tag_cloud(); ?></div>
</div>
<!-- End Tag Cloud Insertion -->

So it should look like this:

More of The Code

After pasting the above code, click on the Update File button.

Once the file is updated, you can further check if it worked by clicking on Write on the Main Menu.

The Tag Cloud should appear just below the field where the tags are typed in. Keep in mind that this does NOT help you drag and drop the tags to the tag input field. It just shows the available tags from your database.

Just in case you don’t want to messy up your hands sifting through code, you can download the hacked file here. Simply extract and upload the file to the wp-admin folder of your WordPress 2.3 installation. I can not reiterate this enough, this is only for WordPress 2.3.

For questions, comments, and suggestions, please feel free to email me at will [at] gormful [dot] com. However, if something goes wrong, you should still be able to restore the old files because you made a back up, right? If in case you didn’t, simply redownload WordPress 2.3 and upload the file you edited.