Home › Forums › General Issues › foot notes within ACF › Reply To: foot notes within ACF
I’ve solved this myself by adding the following to my theme’s functions.php:
function acf_apply_content_filter_for_api($value, $post_id, $field){
return str_replace( ']]>', ']]>', apply_filters( 'the_content', $value) );
}
function add_content_filter_ACF(){
if(!is_admin()){
remove_all_filters('acf/format_value/type=wysiwyg');
add_filter('acf/format_value/type=wysiwyg', 'acf_apply_content_filter_for_api', 10, 3);
}
}
add_action('init', 'add_content_filter_ACF');
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.