Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello @rikitikitari.

    By default, WordPress strips HTML from category and tag descriptions. This code will prevent that from happening.

    /**
     * Allow HTML in term (category, tag) descriptions
     */
    foreach ( array( 'pre_term_description' ) as $filter ) {
    	remove_filter( $filter, 'wp_filter_kses' );
    	if ( ! current_user_can( 'unfiltered_html' ) ) {
    		add_filter( $filter, 'wp_filter_post_kses' );
    	}
    }
     
    foreach ( array( 'term_description' ) as $filter ) {
    	remove_filter( $filter, 'wp_kses_data' );
    }

    You may now use your IFRAME, but there is one issue – you cannot include HTTP pages into HTTPS pages and vice versa. So, the protocol (HTTP or HTTPS) for a parent and the embedded page should match.

    Regards,
    Roman.

    • This reply was modified 4 years, 8 months ago by hankev.
Viewing 1 replies (of 1 total)