Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've been working lots with categories lately, what with the increased awareness and demand for themed or silo'd site structures.

To that end, I'm looking to enhance my category landing pages by relabeling the "Description" field as "Summary Description" and adding a new field called "Detailed Description".

I will be using the "Summary Description" field on my category index page (a listing of all my site's categories) and I want to use this new "Detailed Description" field to show on the landing page for each category.

So I need a rich text edit field added to the Category Edit Screen.

Does WordPress make it easy to create an instance of a rich text edit field, perhaps pulling a light version of the post/page editor? I probably don't need a toolbar, but it might be nice to have some basic formatting buttons like B, I, U, hyperlink, etc...

share|improve this question

3 Answers 3

up vote 3 down vote accepted

http://www.laptoptips.ca/projects/category-description-editor/ this works very good.

about adding another field, I'v tried @MikeSchinkel solution here Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin? and it works very good also.

share|improve this answer
    
Perfect. I thanks you very much Amit. –  Scott B Jan 7 '11 at 20:17
    
This doesn't seem to work at all, it's for an old version of WordPress? –  Shaun Jan 10 '12 at 15:47
    
@Shaun which version? I think first time I tried it was in 3.0, never on a 2.x .. try upgrading on a local copy to see how if it breaks anything first. –  Amit Jan 11 '12 at 10:42
    
Using the latest version, 3.3.1 –  Shaun Jan 11 '12 at 13:59

You should be able to work something out using my code given here;

http://ypraise.com/2012/01/wordpress-plugin-categorytinymce/

I've added an extra tinymce box into the category edit pages with a tinymce editor but it's saved to the orginal description field. you'll need to change the decription field to description1 or something to contain the daa and keep the original box.

Removee the hide box script so this should then give you your standard text box for your summary description and the second textbox for your detailed description.

you'll then need to hide your summary description in the category archive page probably through a jquery filter.

share|improve this answer

It's actually quite easy to create your own TinyMCE instance, it's really only problematic when trying to render additional(and differing) instances on a page where one exists already.

The following blog covers all the necessary information for creating a TinyMCE instance in a WordPress plugin, but could just as easily be applied to an existing admin page, such as the category page.

http://www.keighl.com/2010/01/tinymce-in-wordpress-plugins/

The only differing factor for your usage would be this line.

add_action("admin_print_scripts", "js_libs");

I can't think why anyone would ever want to enqueue tinymce across every admin page, so i'd recommend changing that line regardless and hooking it to the required page. For the category page, off the top of my head you could use something along the lines of..

add_action("admin_print_scripts-edit-tags.php", "js_libs");

The rest is pretty self evident but if there's something you're unclear on(RE: Creating a TinyMCE instance), post a comment to this answer.

You can also find some previous TinyMCE related discussion here.
Is there a way to get N number of WYSIWYG editors in a custom post type?

Hope that helps..

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.