Issue with ACF blocks
-
Hi !
Couple of monthes ago I have noticed one issue with ACF Pro blocks here -> https://ww.wp.xz.cn/support/topic/problem-with-acf-pro/
Issue still persist and to fix it I need to override default plugin’s functions with my custom, what is not great way to do such fixes. This issue related to this functionwpm_translate_stringon line 86 in this fileinclude/wpm-translation-functions.phpit’s stripping away ACF block and display it as a plain text wrapped in p tag, so to fix it I have added such check:if ( str_contains( $string, '<!-- wp:acf/' ) ) {
return $string;
}To skip ACF blocks and let them display properly
You must be logged in to reply to this topic.