Hi,
Is it possible through PHP to add ACF fields to a custom metabox, a settings page or another location?
Now I always use:
if( function_exists(‘acf_add_local_field_group’) ):
$prefix = ‘prefix_’;
acf_add_local_field_group(array(
‘key’ => ‘group_’ . substr($prefix, 0, -1),
‘title’ => __( ‘Field Group Name’ , ‘textdomain’ ),
‘fields’ => array(
// Start Adding fields
// Here …
// End Adding Fields
),
‘location’ => array(
array(
array(
‘param’ => ‘post_type’,
‘operator’ => ‘==’,
‘value’ => ‘page’,
),
),
array(
array(
‘param’ => ‘post_type’,
‘operator’ => ‘==’,
‘value’ => ‘post’,
),
),
),
‘menu_order’ => 0,
‘position’ => ‘normal’,
‘style’ => ‘default’,
‘label_placement’ => ‘top’,
‘instruction_placement’ => ‘label’,
‘hide_on_screen’ => ”,
‘active’ => 1,
‘description’ => ”,
));
endif;
to add a metabox but I would like to go a step further as I need to style the metabox more in detail with extra features but I would like to keep the power of ACF all the fields settings.
Is this possible?