Problem with ACF Pro
-
Hi !
Thanks a lot for a great plugin. But i have an issue with your plugin and ACF Pro. I am using wordpress install with full site editor feature enabled.
ACF adds its blocks to the page content as comment:<!-- wp:acf/test-block {"name":"acf/test-block","data":{"test_title":"[:zz]TEST TITLE2[:]","_test_title":"field_67d40731e0b56","test_text":"[:zz]TEST TEXT3[:]","_test_text":"field_67d407b48ec98"},"mode":"edit"} /-->And after the post save i am getting simple text TEST TITLE2TEST TEXT3 wrapped in “p” tag. So i have found that this function “wpm_translate_string” is breaking ACF block. Now i have fixed this with such condition:
if(str_contains($string, '<!-- wp:acf/')) {
return $string;
}But i think it need to be fixed natively in the next plugin update.
Thanks a lot !
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Problem with ACF Pro’ is closed to new replies.