Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Display a single ACF field form view
<?php $field = get_field_object('field_123a456b78c90'); ?>
<?php acf_form( array('post_id' => 'new_post', 'form' => false, 'fields' => array('field_123a456b78c90'))); ?>
<?php
$field = get_field_object('field_123a456b78c90');
$field['value'] = null;
// alternatively you could call acf_render_field_wrap( $field ); to display the name and description as acf_form would
acf_render_field( $field );
?>
<?php $field['value'] = null; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment