Hi Elliot,
I’m trying to remove the formatting for one of my WYSIWYG subfields.
ACF Version 4.3.4
Repeater Field Version 1.0.1
Currently I’m using the following code to test:
remove_filter('acf_the_content', 'wpautop' );
$_txt = get_sub_field('right_txt', false, false);
add_filter('acf_the_content', 'wpautop' , 12);
But it does not remove the paragraph tags from “right_txt”.
Shoud “remove_filter” work with subfields?
Cheers,
dreamfish
Hi @dreamfish
The sub field values are all loaded when the repeater field is loaded, so you will need to move your ‘remove_filter’ before the has_sub_field
or have_rows
loop.
Thanks
E