Skip to content

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

@louiswalch

Description

@louiswalch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions