Home › Forums › Backend Issues (wp-admin) › Position normal not working
Hi everybody
I’m using acf pro version. i’ve uplaod version 5.9.3 with wordpress 5.5.3
I’ve custom field with “position” => “normal” and he appaers only in the sidebar , and i can’t drag it just after content.
I don’t understand why
function my_acf_gallery() {
acf_add_local_field_group(array(
'key' => 'group_gallery',
'title' => 'Créer ma galerie',
'fields' => array (
array (
'key' => 'ma_gallerie',
'label' => 'Ma galerie',
'name' => 'ma_gallerie',
'type' => 'repeater',
'instructions' => 'Merci d\'insérer vos photos ici (Maximum 300ko)',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'collapsed' => '',
'min' => 0,
'max' => 0,
'layout' => 'table',
'button_label' => 'J\'ajoute une image',
'sub_fields' => array(
array(
'key' => 'mes_images',
'label' => 'Liste des images de ma galerie',
'name' => 'mes_images',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
),
),
),
'location' => array (
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'page',
),
),
),
'position' => 'normal',
));
}
Im having the same issue.
Using Guternberg, but U created the fields using the UX instead of php.
All my fields are on the side, instead of the normal position.
Disabling guternberg with a plugin, then moving the box again to the middle and disabling the plugin works.
Then I add some styles to the wp dashboard to hide the arrows so it doesnt happen again.
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.