• Resolved jimk1416

    (@jimk1416)


    I made the following change to this line of code but it’s still showing an issue. I don’t understand how to use wp_kses_post.
    This is my change:

    echo "<p>" . ( get_field('map_embed') ) . "</p>";;
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jimk1416

    (@jimk1416)

    I tried adding this to functions.php but it’s still showing the issue with this field
    My original line and the code to allow it:

    echo "<p>" . the_field('map_embed') . "</p>";
    add_filter( 'acf/the_field/allow_unsafe_html', function( $allowed, $selector ) { 
        if ( $selector === "map_embed" ) { 
            return true; 
        } 
        return $allowed; 
    }, 10, 2);
    Plugin Support ACF Support

    (@acfsupport)

    Hi @jimk1416

    ACF Support Team here. This forum is generally used by ACF users to help each other out. 

    However, we would love to continue investigating and troubleshooting this issue, please can you create a ticket using our ​support form and we can look into it further.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fixing Output Code’ is closed to new replies.