Support

Account

Forum Replies Created

  • Thanks owen.hoskins for the help.
    Here’s the final code that work:

    function custom_menu_order( $menu_ord ) {  
        
        if (!$menu_ord) return true;  
        
        
        // vars
        $menu = 'acf-options';
        
        
        // remove from current menu
        $menu_ord = array_diff($menu_ord, array( $menu ));
        
        
        // append after index.php [0]
        array_splice( $menu_ord, 1, 0, array( $menu ) );
        
        
        // return
        return $menu_ord;
    }  
    add_filter('custom_menu_order', 'custom_menu_order'); // Activate custom_menu_order  
    add_filter('menu_order', 'custom_menu_order');
  • Thanks for looking into it. Actually I wanted to change position of options page. It is currently changing position of ‘custom fields’ menu. Here are the slugs that I am using for custom option pages, if these help.

    admin.php?page=acf-options-header
    admin.php?page=acf-options-home-page-slider
    admin.php?page=acf-options-footer

    I tried replacing edit.php?post_type=acf with the above slugs, but didn’t work.

    Thanks

  • I have solved the issue… Just created new fields without using underscores ‘_’ in the field_name and it is working… Does this make any difference?

    Thanks

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