Home › Forums › Add-ons › Repeater Field › Repeater + WYWIWYG bug with shortcode › Reply To: Repeater + WYWIWYG bug with shortcode
Hi @scottnath
It is not possible for ACF to run the ‘the_content’ filter on it’s WYSIWYG values as it will cause massive issues such as:
1. A bbPress forum will render twice
2. A shopping cart will render twice
I would advise you to not modify the core functionality, but to just run the_content on the value you get back from the API.
That way, the code is within your theme, not within ACF.
You could even just use this filter in your functions.php file to always run the_content on all WYSIWYG values:
<?php
add_filter('acf/format_value_for_api/type=wysiwyg', 'format_value_for_api_wysiwyg', 10, 3);
function format_value_for_api_wysiwyg( $value, $post_id, $field )
{
$value = apply_filters( 'the_content', $value );
return $value;
}
?>
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.