WordPress.org

Ready to get started?Download WordPress

Plugin Directory

CategoryTinymce

Version: 3.5.1 Provides the ability to add a fully functional tinymce editor to the category and tag editor to style up the introductory information

What exactly does this plugin do to my WordPress installation

  1. The plugin removes the default category description field.
  2. It then adds in a new field that is fully tinymce enabled. I did try and just add an editor to the default field but I could not get it to function correctly. The new field saves to the same database section as the default field so no new database tables or fields are added.
  3. The plugin runs a filter on the category edit admin pages to remove the default description field as this broke up the admin table and made it unweildly.

The plugin does not work

The plugin in was tested on a clean install of wordpress 3.3 and a child theme of 2010. If the plugin does not work then raise a topic for this plugin and tell me: what version of wordpress you are using, what theme are you using, do you have problems with any other tinymce call in your theme.

What does the future hold for CategoryTinymce

There's a bit of tweaking needs doing but the main feature next is to only display the category description on the first page of the archives so it is not repeated when you go to the next page in the archive. In the mean time you can use the following code to deal with the issue.

In category.php of your theme folder add:

if (is_category() && $paged < 2) {
        echo '
        <p>'.category_description().'</p>';
    }
just before the get template part.

In tag.php of your theme folder add:

if (is_tag() && $paged < 2) {
        echo '
        <p>'.tag_description().'</p>';
    }

just before the get template part.

How to display the description at the bottom of the category listings

Add this to your template

<div class="botdesc">
<?php
if ( is_category() ) {
 
$cat_id = get_query_var('cat');
$cat_data = get_option("category_$cat_id");
if (isset($cat_data['bottomdescription'])){
echo do_shortcode($cat_data['bottomdescription']);
}
                    } 

?>
</div>

How to display the bottom desciption of the tag listings

Add this to your template file:

<div class="bottagdesc">
<?php
if ( is_tag() ) {
$tag_data = get_option("tag_$tag_id");
if (isset($tag_data['bottomdescription'])){
echo do_shortcode($tag_data['bottomdescription']);
}
                    } 

?>
</div>

How do I use this in Woocommerce?

Woocommerce integration: The top category description is called as normal. To add the bottom description to a product archive add the following to the archive-product.php file. I would strongly recommend you add the file in the child folder in your theme file rather than directly changing the file in the woocommerce plugin file. Read how to do this in woocommerce if you don't already know. Also remember that if you use a none woocommerce theme and are using the woocommerce.php option in your theme folder then this is the file you need to edit as product-archive.php file does not work. I add the code after the

do_action( 'woocommerce_after_shop_loop' );
            ?>

The code to call bottom description in woocommerce:

<div class="bottagdesc">
<?php
if ( is_product_category()) {
global $wp_query;
        $q_obj = $wp_query->get_queried_object();
        $cat_id = $q_obj->term_id;

$tag_data = get_option("tag_$cat_id");
if (isset($tag_data['bottomdescription'])){
echo do_shortcode($tag_data['bottomdescription']);
         } 
}

?>
</div>

There's no styling for the bottom description

Lots of themes will have different style for the category description style at the top. I don't know what your theme uses so the bottom description is enclosed in a div calls called botdesc

Bottom desciption for tags has a div of bottagdesc

You can either write up your own styles for the div class or find out what your theme is using to style the top category description and then simply add botdesc to include the bottom description.

eg if your theme uses #header for the top description you add botdesc to the style.css as:

header, botdesc h1{blah blah blah}

How do I add the category image to my template?

add this to your theme file

<div class="category_image">
<?php
$cat_id = get_query_var('cat');
$cat_data = get_option("category_$cat_id");
if (isset($cat_data['img'])){
echo '<img src="'.$cat_data['img'].'">';
}
?>
</div>

How do I add the tag image to my template?

add this to your template:

<div class="tag_image">
<?php

$tag_data = get_option("tag_$tag_id");
if (isset($tag_data['img'])){
echo '<img src="'.$tag_data['img'].'">';
}
?>
</div>

The SEO parts do not work?

If you have an SEO plugin already installed then that may override the SEO aspects of this plugin. For All in One SEO pack you can disable the overwriting by putting in the name of the category in the exclude pages of the settings. Take care and read the All in One instructions on using this feature so you know what you are disabling.

I don't want SEO as I use my own plugin?

Go to the settings page and switch off the SEO. This will not remove the boxes in the admin pages but will stop the hook from firing and adding the meta tags to the head.

Requires: 3.3 or higher
Compatible up to: 3.8.3
Last Updated: 2014-4-22
Downloads: 19,863

Ratings

4 stars
4.7 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,5,5
100,1,1
100,1,1
67,3,2
75,4,3
100,1,1
0,1,0 67,3,2
0,1,0
0,2,0