Check if this solution (provided by @Syrehn) works: Reorder plugin items in the admin menu
Try taking just the name from the page admin link and see if it works. Something like this:
function custom_menu_order($menu_ord) {
if (!$menu_ord) return true;
return array(
'index.php', // Dashboard
'separator1', // First separator
'edit.php', // Posts
'pluginname2', // Take the name from the page menu admin.php?page=pluginname2
'upload.php', // Media
'edit.php?post_type=page', // Pages
'edit-comments.php', // Comments
'pluginname', // Take the name from the page menu admin.php?page=pluginname
);
}
add_filter('custom_menu_order', 'custom_menu_order'); // Activate custom_menu_order
add_filter('menu_order', 'custom_menu_order');
I would have made this a comment, but I can’t do that yet.
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Admin menu as submenu from another plugin
- Creating a WordPress admin page without a menu for a plugin
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Delete option doesn’t appear for plugins
- Adding an admin page – OOP approach not working
- Generate Advanced Custom Fields box in custom admin menu page
- Plugin development: how to create a form and get custom data?
- Master menu item for multiple plugins?
- How to make a WP admin button/menu similar to Jetpack Notifications?
- wp_verify_nonce() why return false?
- Detecting when a custom taxonomy has been changed and display alert?
- Sub menu with a URL parameter and access the page
- Removing WordPress Plugin Menu Item for a specific user
- add function to saving change on Options Pages
- Change the $parent_file of a plugin page
- How do I remove the entire left nav bar in admin for certain level users?
- Hide Theme options and Customize Admin menu
- How to send little data between admin pages of my plugin?
- how can I link to a PlugIn admin-sub-menu page after processing a formular
- White page on custom plugin option submit
- Make menu page link inaccessible or disabled
- Show existing POST categories as items in the sidebar menu [closed]
- Polylang : Interverting languages after development [closed]
- Suggestions on Approach to New Plugin I’m Stuck On
- Dynamic admin submenu
- WP Plugins – Use includes to display page content
- Add menu page issues (permissions & position)
- How to use add_submenu_page() for editors?
- What’s causing this error? “Warning: Invalid argument”
- Move plugin-settings to ‘Settings’-menu in the admin
- Editing a text file from plugin menu
- WordPress Admin Menu defining function is seperate file
- creating a plug in that would tap into save/update action of posts [closed]
- Display Plugin Panels Outside of Admin Areas
- Why WP_Screeen doesn’t show all options with admin_body_class
- Plugin Admin Menu Boiler Plate
- add_submenu_page returns null
- Plugin – Admin menu page broken url
- How do I add an options page at the bottom of the list?
- How to remove a CPT Menu from the Root Admin only
- Show WordPress Plugin Menu(Admin) To Editor
- Add logo to admin menu in my plugin
- How do you add a settings page to another menu?
- Custom page in plugin visible in menu
- Adding custom Field To The Posts Listing
- Creating an admin button that when clicked shows a popup form
- add menu page not showing Icon
- Custom Icon assigned to menu items not working for multi-site networks
- Admin menu hilighting wrong item for CPT
- Creating Admin Submenu Page via Class Method
- Plugin option for input box validation
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- Assigning a custom post type to a custom page
- How can I pass value to function in add_menu_page?
- Getting 404 page not found error while trying to access add new plugin / themes
- Plugin menu replaced by another plugin?
- Plugin link does not appear in my toolbar
- admin_enqueue_scripts using hook_suffix vs GET page
- Submitting form to admin-post.php WordPress
- How do I cleanly override a plugin’s CSS with a child theme?
- Add a subitem to Woocommerce section
- Using rewrite rule to access a view of a plugin from home page
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- Thumb rating for wordpress – top user
- How to Get Admin Settings for a widget when using the_widget() with custom widget
- How to crop image from center using wp_image_editor
- Deactivate plugin upon deactivation of another plugin
- Shortcode in AJAX popup
- Set attached to state
- Image resizing on home page (product category) [closed]
- WP-Cufon adding extra space in my paragraphs in Firefox and Chrome
- Keep custom fix in a plugin
- Get post by ASC from custome field DATE picker
- How to add an image from web-link?
- Using a custom plugin to capture input data via Ajax and PHP
- Display post lists in 2nd paragraph
- How to make a proper custom post type link
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- A new translation folder overrides my usual translation from “nowhere”
- Create tabs in admin options page from custom post type loop
- How to make custom client Login page for a specific page
- add_action into another add_action not working
- Using custom fields for image alt and title
- Hook Scripts and Styles in WordPress
- Remove updates text on plugin or themes list page
- How to turn off automatic operation for Nivo Slider?
- Absolute paths in backend for plugins after moving wordpress
- get wpforms ID value from ACF text field
- How to set Google Analytics tracking code on WordPress plugin directory page?
- Tool to highlight text in WordPress page and provide additional text on hover
- Change the color of ACF Subtitle output background
- my hook or my function wont run in the cronjob
- How to block access to certain WordPress pages using a snippet
- Manually updating plugins via FTP or SCM
- using jquery serialize in ajax operation for plugin
- How do I to override login redirect on specific pages?
- Embedding BitBucket Code in Posting
- Ajax Called in Plugin php file
- Store large dataset in WordPress installation temporary