Title: Fixing Output Code
Last modified: January 22, 2024

---

# Fixing Output Code

 *  Resolved [jimk1416](https://wordpress.org/support/users/jimk1416/)
 * (@jimk1416)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fixing-output-code/)
 * 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:
 *     ```wp-block-code
       echo "<p>" . ( get_field('map_embed') ) . "</p>";;
       ```
   

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

 *  Thread Starter [jimk1416](https://wordpress.org/support/users/jimk1416/)
 * (@jimk1416)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fixing-output-code/#post-17363262)
 * 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:
 *     ```wp-block-code
       echo "<p>" . the_field('map_embed') . "</p>";
       ```
   
 *     ```wp-block-code
       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](https://wordpress.org/support/users/acfsupport/)
 * (@acfsupport)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fixing-output-code/#post-17402376)
 * Hi [@jimk1416](https://wordpress.org/support/users/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](https://www.advancedcustomfields.com/contact/)
   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.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ACF Support](https://wordpress.org/support/users/acfsupport/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/fixing-output-code/#post-17402376)
 * Status: resolved