Does this work with the new ACF Pro?
I tried this, to no effect:
function the_field_without_wpautop( $field_name ) {
remove_filter('acf_the_content', 'wpautop');
the_field( $field_name );
add_filter('acf_the_content', 'wpautop');
}
Looks like you need to include the ‘new_post’ parameter.
The last example on this page should help: http://www.advancedcustomfields.com/resources/acf_form/
This reply has been marked as private.
So if I were using the acf/update_value to scrub all of the fields, how should I format the code? What needs to go in the “Custom value”; area? Sorry, I’m a little lost. Thanks!
function my_acf_update_value( $value, $post_id, $field )
{
$value = "Custom value";
// do something else to the $post object via the $post_id
return $value;
}
Same issue, I have a custom field that I’d like (on submit) to ALSO be used as post_title.
I’ve tried filtering as well as using the call to the fields that robnero mentions above, no luck.
Anyone else have success?