this might work:
add_filter('custom_menu_order', 'my_custom_menu_order');
add_filter('menu_order', 'my_custom_menu_order');
function my_custom_menu_order($menu_ord) {
if (!$menu_ord) return true;
return array(
'index.php', // the dashboard link
'edit.php?post_type=custom_post_type',
'edit.php?post_type=page',
'edit.php' // posts
// add anything else you want, just get the url
);
}
Related Posts:
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- Remove “posts” from admin but show a custom post
- How to add custom columns to Custom Post Type admin screen
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How to add post_author column to custom post type
- Custom Post Type and taxonomies’s labels localization not working
- WordPress User Roles, Custom Post Types, and Admin views
- How to customize admin posts based on the user who is logged in
- How do increase the amount of links shown down the left in the admin menu?
- Remove rows in the manage post/page view
- Selecting a post in Dashboard
- Custom admin post.php page
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Possibilities for the edit.php admin panel? [closed]
- How to group navigation items in the admin panel
- Metaboxes inside Tab
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- How to override post-new.php with custom template
- Custom Post Type Causing Admin Sidebar UI Issue
- Admin menu link with variable
- How to set up a private custom post type that is accessible in the administrative dashboard?
- How to remove admin menu pages inserted by plugins?
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Change the text on the Publish button
- Load a script just to custom post type in admin
- Row actions for custom post types?
- Register CPTs using Dashicons for admin menu icon in WP 3.8
- Customize Edit Post screen for Custom Post Types?
- Filter by custom field in custom post type on admin page
- How can I remove the “Add New” button in my custom post type?
- Custom Post Type Settings page, choose page to display archive
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Merge two custom post types into one admin page?
- Remove the “View” Link in Post Admin
- Put update-like notification bubble on multiple CPTs menus for pending items
- Meta Boxes: ‘admin_init’ or ‘add_meta_boxes’ hook?
- Subset of Custom Post Type From Admin Menu Based on Meta Data
- How to redirect from wp-admin/edit.php to a frontend page for specific custom post type?
- exclude admin archive edit screen
- Help Adding filter to Add Media button for custom post type
- Simple Data picker meta box
- In the admin, how can you list thumbnails instead of titles for a custom post type?
- Custom post meta box as a sub form
- Delete all custom posts then upload a new CSV of events
- Pagination in wp-admin for CPT
- Setting up a page to house certain types of posts
- Create an administation subpage containing posts in a certain category
- Group based routing and administration
- Limit Number of Custom Post Type Dashboard
- Changing menu label to post name for custom post type
- Add filter button to custom post type in admin area
- Show custom taxonomy not in submenu
- “Trash”, “Draft” and count not showing for custom post type in admin panel
- Edit is changing my custom’s post type parent id
- Duplicate “Pages” Item in Admin Menu
- Custom post type doesn’t display on admin list
- wp_is_mobile() inside js
- Customising the admin columns for a custom post type, but now most of the built in categories don’t display?
- Shared Custom post type between WP network sites
- How to add elements to WordPress appearance->menu admin?
- How to avoid hardcoded text in a custom page template?
- Exclude categories For Custom post types
- Custom Post Type Pagination Problem in Admin Section
- Admin menu post type
- Limit number of posts under a post type?
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Redirect preview single post link to a page
- Getting 404 page not found error while trying to access add new plugin / themes
- Filtering in admin broken for custom post type in 3.8.1?
- Issue on CPT Custom Menu Position in WP
- Custom Taxonomy Showing in WP Menu
- Custom post type won’t take my custom fields
- How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?
- Change column of row action (Quick Edit) links in WP_List_Table
- Collection of fields in a single post
- Show custom taxonomies in admin panel under custom post type
- Change the text on the Publish button
- Show a custom field instead of username in the backend author area
- Can’t preview custom post – Redirected to home page
- How to make an admin create/edit post page to look like taxonomy page?
- Prevent users from changing post status
- Show posts of parent in edit.php
- admin search of pages returns custom post types
- Add top-level menu pointing to a different custom post type?
- Separating a custom taxonomy from blog post-type
- Display read only info on admin, custom post page
- Custom Plugin w/ Custom Post Types – Custom Posts Are Showing at all Privilege Levels – Is this possible to adjust?
- wordpress custom post type shows other cpt posts in admin menu
- Custom post types not showing in the admin menu on production, but shows locally
- How to set the Screen Options for Users in the Admin Panel?
- Issue displaying multiple TinyMCE editors with WPAlchemy
- Custom order of CPT posts by title, in wp-admin area by default
- Change CPT Edit Target Link for Admin List
- Can’t add custom post type archive page to menu
- Display posts of only a certain category in WP Admin section?
- One custom taxonomy with unique sets of labels for two post types?
- Display box in sidebar of custom post type