Support

Account

Home Forums Backend Issues (wp-admin) Position normal not working

Solving

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',
    	));
    	
    }
  • Are you using gutenberg or classic editor?

  • 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.

  • I’m using gutenberg

  • 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.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.