WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a piece of code which is helped to display the description of custom taxonomies but i want to put <h1> tag for the title of description, but that description box doesn't takes html tags, so how can i implement html tags to my description here is my code

<div class="featured post">
            if ( is_tax( 'location' ) ) {
                echo term_description();
            elseif (is_tax('mba_courses')){
                echo term_description();
            elseif (is_tax('duration')){
                echo term_description();

share|improve this question
up vote 4 down vote accepted

H1 tags around the descriptions?

echo '<h1>' . term_description() . '</h1>';

UPDATE: Add link to plugin to allow HTML in term descriptions.

WordPress Plugins - Allow HTML in Category Descriptions
This will work with custom taxonomies to.

Copy of the appropriate code
For those of you that want to simply see how it's done.

$filters = array('pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description');
foreach ( $filters as $filter ) {
    remove_filter($filter, 'wp_filter_kses');

foreach ( array( 'term_description' ) as $filter ) {
    remove_filter( $filter, 'wp_kses_data' );
share|improve this answer
but this will make entire description in H1, my description will be having something in paragraph, where i want just the title should be in h1 – ntechi Dec 15 '10 at 11:08
It wasn't clear exactly what you wanted from the information provided, but i've updated my answer with a link and some code. – t31os Dec 15 '10 at 11:52
hey thanks mate, it worked, thanks a lot – ntechi Dec 16 '10 at 5:03
If your question has been addressed please be sure to mark the answer as correct, and you're welcome... ;) – t31os Dec 16 '10 at 10:48

Your Answer


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.