• Resolved wutrigy

    (@wutrigy)


    Hello

    Excellent theme, great to work with.

    How can I allow HTML in category description? I’ve installed Rich Text Tags, and added this to theme functions.php

    /*
     * Allow HTML in Category description
     */
    foreach ( array( 'pre_term_description' ) as $filter ) {
        remove_filter( $filter, 'wp_filter_kses' );
    }
    
    foreach ( array( 'term_description' ) as $filter ) {
        remove_filter( $filter, 'wp_kses_data' );
    }
    
    remove_filter( 'pre_term_description', 'wp_filter_kses' );
    remove_filter( 'pre_link_description', 'wp_filter_kses' );
    remove_filter( 'pre_link_notes', 'wp_filter_kses' );
    remove_filter( 'term_description', 'wp_kses_data' );

    But, it still strips them in frontend view.

    Can you help out?

    Thanks in advance

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

The topic ‘Allow HTML in category descripton’ is closed to new replies.