Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
louiswalch opened this issue Aug 11, 2023 · 0 comments
Open

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

louiswalch opened this issue Aug 11, 2023 · 0 comments

Comments

@louiswalch
Copy link

louiswalch commented Aug 11, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant