StoutLogic / acf-builder

An Advanced Custom Field Configuration Builder
GNU General Public License v2.0
792 stars 61 forks source link

Label placement 'left' doesn't work for options pages #177

Open louiswalch opened 1 year ago

louiswalch commented 1 year ago

This is a weird one. I'm noticing that 'label_placement' => 'left' doesn't work for field groups on options pages. Screenshot attached showing a field group created in native ACF vs. one created with ACF Builder.

$group = new StoutLogic\AcfBuilder\FieldsBuilder(basename(__FILE__), [
    'title'                 => 'Test (ACF Builder)',
    'label_placement'       => 'left',
    'instruction_placement' => 'field',
    'menu_order'            => 2,
]);

$group->setLocation('options_page', '==', 'acf-options-options-test');

$group->addText('text_field2', [ 'label'=>'Text Field 2' ]);

acf_add_local_field_group($group->build());
Screen Shot 2023-08-11 at 7 07 28 AM