• Resolved syncbox

    (@syncbox)


    Is “term_description” the replacement for category_description? I am trying to figure out where and how (in default-functions.php?) to disable how WordPress removes things like <h2></h2> in my category description fields.

    I wish they’d also update the field names if they are going to change them in the database…

    anyone know which lines to comment out to enable html in category descriptions (term_description?)

    help much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter syncbox

    (@syncbox)

    I’ve tried commenting out the bits of code in default-functions.php

    $filters = array('term_description');
    foreach ( $filters as $filter ) {
    	add_filter($filter, 'wptexturize');
    	add_filter($filter, 'convert_chars');
    	add_filter($filter, 'wpautop');
    }

    but it doesn’t seem to fix my issue of wanting to have heading tags in my category descriptions…

    is there an additional bit of code to comment?

    Or, if someone has a ready-to-use function to put in a functions.php file, would you mind sharing? I know it isn’t best to hack the main files.

    However, I don’t have a functions.php file (where does it go?) and have never used one.

    Eager to see how others handle this…

    Thread Starter syncbox

    (@syncbox)

    I figured out that another bit needed commenting out as well for it to work. However, if a WordPress guru wants to show me how to disable the above via a functions.php file, I’d be extremely happy to learn 🙂

    thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how to enable html in category (term?) description?’ is closed to new replies.