Quick Fix: New ACF Update Effecting Schema Fields

I have experienced and have been getting reports that the 2024 update for ACF to version 6.2.5 is causing some plugin conflicts that is causing html, specifically schema in this case, to appear as rendered html on pages that the field is set to display.

This is frustrating for many users because ACF has typically been a low-code plugin designed to be very user-friendly for all WordPress users.

You can read the entire ACF update here

If you experiencing problems with schema or other html rendering on your website after the update, do this:

  1. Go to your wp-content folder. If you use wp file manager you can find it here. If not, you can edit it through ftp.
  2. Navigate to your themes folder.
  3. In the folder of the active theme that is installed on your website, go to the functions.php file and begin editing.
  4. In the bottom of your functions.php file add the following code:
add_filter( 'acf/the_field/allow_unsafe_html', function( $allowed, $selector ) {
    return true;
    return $allowed;
}, 10, 2);

Once you add this code and update this, it should fix the issue causing the code to render on the website.