Plugin Support
Yurii
(@yuriinalivaiko)
Hello @driftmaps
Please provide more details. How do you show a google calendar? Do you use a shortcode or JavaScript code to add an iframe? Or you just add a raw HTML? Take a screenshot with the field settings if possible.
Note that <iframe> HTML tag is not allowed content. The field content is sanitized using the wp_kses_post function. This function filters content with allowed HTML tags and attributes. You can use the wp_kses_allowed_html hook if you wish to extend allowed HTML tags. See example below.
// Allow <iframe> in content.
add_filter( 'wp_kses_allowed_html', function( $allowed_html, $context ) {
if ( 'post' === $context ) {
$allowed_html['iframe'] = array(
'allow' => true,
'frameborder' => true,
'loading' => true,
'name' => true,
'referrerpolicy' => true,
'sandbox' => true,
'src' => true,
'srcdoc' => true,
'title' => true,
'width' => true,
'height' => true,
'allowfullscreen' => true,
);
}
return $allowed_html;
}, 10, 2 );
Regards
Hi @driftmaps
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards