Support

Account

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

Solving

Position normal not working

    • soxy_b

    • November 14, 2020 at 2:07 am

    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?

    • gabiton

    • January 8, 2021 at 2:05 am

    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.

    • soxy_b

    • January 11, 2021 at 7:40 pm

    I’m using gutenberg

    • gabiton

    • January 11, 2021 at 10:16 pm

    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.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.