[Resolved] Add shortcode to category description

Home Forums Support [Resolved] Add shortcode to category description

Home Forums Support Add shortcode to category description

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #411663
    Chad Biggs

    I am trying to add a Meta Slider to the category description. Is there any way to add shortcode to the category description?

    Chad

    #411697
    Chad Biggs

    Found it.

    ` add_filter( ‘category_description’, function( $content ){
    return apply_filters( ‘the_content’, $content );
    });
    remove_filter( ‘pre_term_description’, ‘wp_filter_kses’ );
    remove_filter( ‘term_description’, ‘wp_kses_data’ ); `

    #411702
    Leo
    Staff
    Customer Support

    Glad you figured out!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.