• Resolved Arreane

    (@yanex)


    When I ran a taxonomy import for the taxonomy description. It sucessfully imports the description, but it removes all the heading and ul tags. The only tags that are being retain are inline tags like strong and anchor tags.

    Is there a way to retain all the html tags from the taxonomy description during import?

Viewing 1 replies (of 1 total)
  • Thread Starter Arreane

    (@yanex)

    Nevermind, I found the solution. You will have to add the following code snippet to your functions.php file for it to accept html tags.

    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' );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Importing Taxonomy description strips down the heading and ul tags.’ is closed to new replies.