[Resolved] Add shortcode to category description

Home Forums Support Add shortcode to category description

  • This topic has 2 replies, 2 voices, and was last updated 3 years ago by Leo.
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

    GeneratePress 1.4
    GP Premium 1.4.3
    #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
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.