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:

    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;