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
- Merge two custom post types into one admin page?
- Remove the “View” Link in Post Admin
- Admin Filter – Add Post Type Description on Post Type Page
- how to group custom post types
- Custom post type admin search
- Ordering posts by custom taxonomy in admin area
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- WordPress Custom Post Type Admin Page really slow
- How to remove items from +New admin menu?
- Post slug changed using code doesn’t reflect on editor when post is published
- Make sub menu items a main link in the admin menu using fuctions.php
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Ordering Post 2 Post admin meta box by meta from CPT
- Admin pages have no content
- Remove Custom Post Type menu for non-administrator users.
- Make a custom column sortable, by custom post count
- Using multiple instances of wp_editor in Custom Post Type admin area
- How i add new link after Edit | Quick Edit | Trash | View in quick edit section
- Custom Post Type Name Causing Problem
- Only Show an Author Their Custom Post Types
- Use a textarea for a custom post type
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- how to only have one custom post type post?
- Restrict categories to a custom post type
- How can I use a different default admin menu icon for custom post type?
- Admin List Dynamic Heading
- Settings page above CPT page in admin section
- How to search CPT’s by meta query from the admin dashboard?
- Add theme options to custom post type admin pages [closed]
- Need functionality with all post list available at edit.php
- How do I alter the position of a Custom Post Type menu item within my plugin admin menu?
- How to remove ‘create new post’ entry for a custom post type?
- Changing ‘view’ link for custom post type on list post screen?
- Sort admin area by custom Event Date field
- Add html to cpt main page / admin edit.php
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Admin not showing all custom post type posts and views not working
- Insert & order custom post types in/as submenu
- Admin Pointers on a custom post type
- Customize my custom taxonomy table in Admin panel
- Notify admin on new submit
- On update or create post redirect to current post position in list
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- Admin Filter – Add Post Type Description on Post Type Page
- Admin Column does not populate with data
- Custom Postype specific changes in admin panel
- It’s possible to hide body copy box for a custom post type?
- Show data from one Custom Post Type in another Custom Post Type
- Set thumbnail and title for a post type archive (not post itself!)
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Admin top level menu, pointing to an external url
- sortable columns for multiple custom post types not working
- Add ‘page template’ column to dashboard for CPTs
- Reusable metabox backend and frontend
- Filter posts of custom post type by meta key in (List All Section)
- Top level menu position overwrites another entry
- Questions regarding add_meta_box()
- Require custom post type if is_admin() – template doesn’t show up?
- Sorting custom post types in edit.php : Post disappear
- adding page types in menu
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Restrict admin pages for specific user role
- Admin Post Table – Remove Title Edit Link
- remove duplicate name submenu link from the custom post type
- Restrict Custom Post Type to One Item
- Simple Data picker meta box
- Show custom taxonomy not in submenu
- How to add elements to WordPress appearance->menu admin?
- 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
- 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
- admin search of pages returns custom post types
- Custom Plugin w/ Custom Post Types – Custom Posts Are Showing at all Privilege Levels – Is this possible to adjust?