Rich Text Tags Plugin on WordPress.org
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:
<?php echo category_description(); ?>– category_description() on WordPress.org<?php echo tag_description(); ?>– tag_description() on WordPress.org
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:
Related posts:
- Add Custom Taxonomy Title Tags Support to All-In-One SEO Pack
- Add Custom Titles for Tags and Categories in Wordpress
- {{SEO WordSpinner Plugin – A Killer SEO Plugin for WordPress|Kick SEO Ass with SEO WordSpinner Plugin for WordPress|WordPress Content Spinner Plugin – SEO WordSpinner}}
- How to tell if your WordPress Plugin or Widget is Activated in WordPress
- Simple Taxonomies Formatting — Improve the Plugin’s Code Output
Katz Web Services is a
{ 1 trackback }
{ 11 comments… read them below or add one }
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
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.
Yeah, as suspected, it’s hard…If you can figure out how, let me know!
Same as David, thanks heaps! I’ll give it a try too and might get back if I figure it out.
Version 1.0.3 is completed and now includes the media uploader & media library functionality!
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?
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!
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' );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
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
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.