you cannot put this on position 5
because there is something but you can put it on 4.5
with this code :
add_action("admin_menu", function () {
$GLOBALS["menu"][4.5] = $GLOBALS["menu"][20];
unset($GLOBALS["menu"][20]);
});
Related Posts:
- Using menu_position to add two entries between Dashboard and Posts
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Hook for post and page load
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Integrating a custom post type into a page hierarchy
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Custom Post Type Settings page, choose page to display archive
- Searching multiple custom post types and pages
- Put update-like notification bubble on multiple CPTs menus for pending items
- Meta Boxes: ‘admin_init’ or ‘add_meta_boxes’ hook?
- Show Custom Taxonomy Inside Custom Menu
- Remove “posts” from admin but show a custom post
- Return current page type
- Custom Post Type as Page parent
- Can I have Post Types under other Post Types in Admin menu?
- Is it OK to move admin menu items?
- How to add a post from a custom post type as the static page?
- Get page by template?
- Page as child in custom post type slug?
- How Do I Programmatically Better Organize Custom Post Type Menus?
- Add Post type menu to another menu
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- TV Show database – Best way for structuring it?
- How do I create multiple post types in same menu section in WP-admin?
- Is there a way to keep a custom menu expanded when editing a custom post type?
- Is there a way to make a custom Page type?
- How to Add Pages Under Custom Post Type URL Structure?
- Custom Posts on Different Pages
- 2 Different Custom Post Types in Submenu
- Top Level pages in wordpress giving 404, but child pages working fine
- Page for custom post type
- Why does not this wp_redirect work in is_single()?
- Why is get_pages() returning a boolean?
- Pros and cons of a custom page vs custom post type template file
- How to include custom post type posts on a page?
- Ordering Submenu Pages in WP 3.1
- Including link to custom post type in ‘wp_list_pages’ function
- the_content(); of custom post type treated as an array or object
- Multiple pages per post (not pagination)
- Can I change my post type to anything and my site still work?
- Page listing Custom Posts
- Display an authors post on a single page only when they are logged in
- How to group navigation items in the admin panel
- Why are some of my custom posts not showing up on my page?
- Conflict between Capabilities and Menu Visibility with Custom Post Types
- Merge page with custom post type
- Conflict between wp_list_pages and get_posts – list pages not displaying
- Hide Status Option From WordPress Publish Metabox and Rename Published on:
- Getting post attchment URL to populate a CPT Admin Page Column
- How to add query args to links to CPT admin submenu
- URL Rewrite – Page Archive
- How to set the mainpage of a custom post type?
- Reusable metabox backend and frontend
- Render a Post or Page using the correct file
- Multiple custom post types showing up in edit.php
- Top level menu position overwrites another entry
- admin_head-post.php only works after publish / update
- Setting a homepage – doesn’t seem to work
- Under What Conditions Can I name my CPT the same as my CPT Page?
- custom post creation on front page – on submit a search is done
- wp_dropdown_pages with tax_query clause
- Am I mixing up the concept of posts pages and categories?
- How to setup different permlalinks for posts and pages?
- Getting subpage of subpage – Custom posts
- adding page types in menu
- Sets post_parent in custom post type posts automatically based on cpt->page name
- Tag template not returning posts [closed]
- Does “Custom Post Type” can have page hierarhy option?
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- Metaboxes inside Tab
- How do I disable the built-in editor and automatically configure the properties of new pages?
- How to set a ‘page’ as parent of a custom post type?
- Restrict admin pages for specific user role
- Cannot include custom post item within a menu
- How can i redirect click to new admin page not to edit screen in post table
- Is there a way to display a custom post type menu item as “users” submenu?
- Add custom template ‘sub-page’ to Custom Post type?
- Metabox collapsed by default
- remove duplicate name submenu link from the custom post type
- How to use posts as tabs in a custom page?
- Custom Post Type Single Page and Archive Page redirects to Home Page
- Create Custom page with custom domain
- How to stop a permalink redirecting to a page whit same slug but different permalink
- Do not show child pages within a file page
- Disable Sidebar on certain pages
- Cannot save pages after migration
- Displaying posts inside table having issues
- Show posts from custom post type sorted by category/taxonomy on a one-pager/page
- Custom post types & Pages hierarchy – Error 404
- Subset of Custom Post Type From Admin Menu Based on Meta Data
- How to make “single post” permalink maintain it’s sub-page structure
- How to override post-new.php with custom template
- How to manage a custom post type archive as a page?
- How to manage a custom post type archive as a page?
- Setting up a page to house certain types of posts
- Include images from pages in wp search.php results in default wp search
- Changing menu label to post name for custom post type
- WordPress Contents Migration
- Creating Slider in wordpress theme with custom post
- How can I make my CPT read from page-*post-type*.php?