Home Forums Feature Requests Show Order No. for each Field Group


Show Order No. for each Field Group

  • On the Field Groups page in the Admin, there’s already a column which shows how many fields are in each group, but it would be nice to also see the group’s “Order No.” from the Options settings in another column, and perhaps allow this column (along with the title) to be sortable.

    I like to always set an Order No for each group, so It would help to easily see which group’s might have a duplicate or default number without going into each Group to view the setting.

  • I’m only guessing, but the reason this is not a feature is because different people would want to see different things, and the list of what could be shown is quite large: order, group key, location rules, what’s hidden on the screen, position, style. Each person may want different things depending on their own preferences and needs.

    Add this to functions.php and it will add the order value to the list.

      function acf_field_group_columns($columns) {
        $columns['menu_order'] = __('Order');
        return $columns;
      } // end function reference_columns
      add_filter('manage_edit-acf-field-group_columns', 'acf_field_group_columns', 20);
      function acf_field_group_columns_content($column, $post_id) {
        switch ($column) {
          case 'menu_order':
            global $post;
            echo '<strong>',$post->menu_order,'</strong>';
        } // end switch
      } // end function reference_columns_content
      add_action('manage_acf-field-group_posts_custom_column', 'acf_field_group_columns_content', 20, 2);
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Show Order No. for each Field Group’ is closed to new replies.