Help! ACF doesn’t show Scripts in frontend

[ad_1]

I’m trying to embed a Google Custom Search engine in couple of page.

I tried using embed, text, wysiwyg field.

**Error i get is: ACF PRO —** ACF now automatically escapes unsafe HTML when rendered by `the_field` or the ACF shortcode. We’ve detected the output of some of your fields has been modified by this change, but this may not be a breaking change. [Learn how to fix this](https://www.advancedcustomfields.com/escaping-the-field/?utm_source=ACF+PRO&utm_medium=insideplugin&utm_campaign=docs&utm_content=6-2-5-security-changes). [Show details](https://test3.ganeshunnam.com/wp-admin/admin.php?page=edit-snippet&id=6#).

I added a code snippet to allow what it is considering as unsafe HTML

`add_filter( ‘acf/shortcode/allow_unsafe_html’, function ( $allowed, $atts ) {`

`if ( $atts[‘field’] === ‘gcse_code_snippet’ ) {`

`return true;`

`}`

`return $allowed;`

`}, 10, 2 );`

But still it doesn’t work.

**PS:** I’m using ACF + Elementor + WP All Import

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer