ID); don't get the field orderd, what is the right method //$acf is supposed to be an array tested before the include $keys = array_column($acf_fields, 'menu_order'); array_multisort($keys, SORT_ASC, $acf_fields); //ACF FIELDS are displayed with specific edit post page --> //Loop on ACF Fields to keep the order --> foreach ($acf_fields as $key => $acf_fvalue) { ?> metakey[$search_metakey])?$falang_post->metakey[$search_metakey]:''; ?>