Rich Text Tag, Category, and Taxonomy Descriptions for WordPress

August 19, 2009

in Plugins, WordPress

Rich Text Tags Plugin on WordPress.org

Taxonomies, baby!The Rich Text Tags plugin allows you to use the WYSIWYG TinyMCE text editor (the WordPress default editor) while editing Categories, Tags, and taxonomies (custom categorization created by the Yoast Simple Taxonomies plugin).

Adding Category & Tag descriptions

There’s plenty of information online on how to add category descriptions and tag descriptions to your theme. WordPress has built-in functionality for those:

How to add the taxonomy title & descriptions to your theme

Once you have the cool new rich text editor, you’ll feel pretty silly if you don’t put that great content in your theme.  So here’s what to do:  add the following snippet of code into your archive.php file.

<?php
if(isset($wp_taxonomies)) {
	// This is getting the friendly version of a taxonomy
	// - not the hyphenated get_yoast_term_title()
	$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
	if($term) {
		echo '<h2 class="pagetitle">'.$term->name.'</h2>';
	}
	// If you have a taxonomy description, let'er rip!
	if(function_exists('get_yoast_term_description') && get_yoast_term_description()) {
		echo wptexturize(get_yoast_term_description());
	}
}
?>

Using this code, you can now have custom content on your taxonomy pages, like this one for Andersen Windows.

SEO Benefits of this plugin

Besides the obvious benefits of giving users more information on your archive pages, there are intrinsic SEO benefits to having tag, category, and taxonomy descriptions.

When you have tags and categories where posts overlap, it’s a good idea to try to create as much unique content on each page as possible, so that each page gets indexed by Google. Having custom content for each page will do that.

Help me help you!

Please leave any issues you have with the plugin in the comments below. I like to squash code bugs!

Known Plugin Incompatibilities

This plugin does not work with these plugins:

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • Twitter

Related posts:

  1. Add Custom Taxonomy Title Tags Support to All-In-One SEO Pack
  2. Add Custom Titles for Tags and Categories in Wordpress
  3. {{SEO WordSpinner Plugin – A Killer SEO Plugin for WordPress|Kick SEO Ass with SEO WordSpinner Plugin for WordPress|WordPress Content Spinner Plugin – SEO WordSpinner}}
  4. How to tell if your WordPress Plugin or Widget is Activated in WordPress
  5. Simple Taxonomies Formatting — Improve the Plugin’s Code Output

{ 1 trackback }

Wtyczki – Dexter | NucleON IT Business Services – Test Site
December 2, 2009 at 3:28 am

{ 11 comments… read them below or add one }

David August 24, 2009 at 10:58 pm

Zack- Very cool plugin. By chance I was searching Google for a plugin that could do this and stumbled upon yours. Nice!

Any chance you can incorporate the image uploader into the editor? If that’s possible, I’d definitely use that feature!

Dave

Reply

Zack Katz August 24, 2009 at 11:02 pm

Hi David – I wanted to do that in the first version, but I didn’t have the time. This feature will definitely be in future versions…though I can’t say when.

Reply

Zack Katz August 25, 2009 at 1:51 pm

Yeah, as suspected, it’s hard…If you can figure out how, let me know!

Reply

AU Web Designer August 26, 2009 at 10:23 am

Same as David, thanks heaps! I’ll give it a try too and might get back if I figure it out.

Reply

Zack Katz September 1, 2009 at 8:32 pm

Version 1.0.3 is completed and now includes the media uploader & media library functionality!

Reply

Karen September 6, 2009 at 8:31 am

Help! I am using Thesis with open hook and when I enter the code you give to to my archives.php page to allow my category descriptions to appear on my site like the Anderson Windows example it doesn’t work.

Any idea what I could be doing wrong?

Reply

Damiano December 30, 2009 at 4:31 pm

Hi! Great plugin, but seems that category_description() strips the html tags out from descriptions… Any hints? I’m using Wordpress 2.9. Thank you however!

Reply

Zack Katz December 31, 2009 at 6:55 pm

Hi Damiano, that should have been taking care of automatically when using the plugin…but you can always try adding the same code again to your functions.php file:

remove_filter( 'pre_term_description', 'wp_filter_kses' );

Reply

Damiano January 8, 2010 at 5:37 pm

Hi,
adding that string doesn’t work, at least for <li> and <img> image… I also upgraded to Wordpress 2.9.1. If I’ll find something useful, I’ll posti it here.
Bye

Reply

Sjoerd January 29, 2010 at 8:07 pm

Hi,
Did you already find a solution for the problem with the <li> and <img> tags? I’ve used allot of lists in my tag descriptions and WP strips them all.. :S
Bye,
Sjoerd

Reply

JHouse February 5, 2010 at 4:36 am

Very cool plugin. I got it working partially, but I couldn’t separate the text into paragraphs. Well, I could in the editor, but it wouldn’t show on the main site. I added the function code you provided as well, but no dice. Also, every time I added pasted text (I was working on text in a text editor), it would oddly add it twice. Any thoughts as to what’s causing this?
Thanks.

Reply

Leave a Comment

Previous post:

Next post: