Forums

[resolved] Images stripped from Tag description (2 posts)

  1. deadhippo
    Member
    Posted 1 year ago #

    Hi,
    I wanted to add an image to my tag description like on this post: http://www.theshirtlist.com/store/deez-teez/

    When I tried to create a new one the image just disappears when I save the description. Clearly it was working before as you can see it above. Even when I copied the above code exactly and saved it to another tag the image code was stripped.

    Any ideas what's going on?

    Thanks.

  2. deadhippo
    Member
    Posted 1 year ago #

    I found a solution thanks to Justin and ThemeHybrid and a plugin that also does the job. Justin's solution is very neat.

    ThemeHybrid: http://themehybrid.com/support/topic/category-tag-description#post-54418

    Just add to lines of code to your functions.php

    remove_filter( 'pre_term_description', 'wp_filter_kses' );
    remove_filter( 'term_description', 'wp_kses_data' );

    Plugin: http://wordpress.org/extend/plugins/allow-html-in-category-descriptions/

Topic Closed

This topic has been closed to new replies.

About this Topic