Get Page ID from Backend

Take a look this page from the codex. When creating a metabox, one of the options is a callback, which when called take a paramater for $post, which is the same as calling global $post ( as a side note, you can still do this in the backend Admin and get all the same variables. … Read more

Admin top level menu, pointing to an external url

Just add your custom item into $menu instead of $submenu. Use here as a reference for parent menu structure. http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/menu.php Eg. add_action( ‘admin_menu’ , ‘admin_menu_wpse32975’ ); function admin_menu_wpse32975() { global $menu; $menu[9999] = array( __(‘My Menu’), ‘manage_options’, ‘http://www.google.com’, ”, ‘open-if-no-js menu-top’, ”, ‘div’ ); }

Linking to Post Types from wp-admin

The following should do the trick: <a href=”https://wordpress.stackexchange.com/questions/35141/<?php admin_url(“https://wordpress.stackexchange.com/questions/35141/edit.php?post_type=slides”) ?>”>Slides</a> It’s how it’s done in the source code. The function admin_url() appends the proper admin address. The output of the url should be: http://www.mysite.com/wp-admin/edit.php?post_type=slides

Simplify the admin end

First, once you assign users to the role of Author or Editor they will see quite a few fewer menu items (Settings and Appearance goes away) – see Roles and Capabilities. Try creating a second account for yourself and seeing if that helps. You can then remove additional menu items using the Admin Menu Edtior … Read more

paginate_links on custom query in admin – ‘sufficient permissions’ error

The last part of the URL is being treated as part of the page value.. /wp-admin/admin.php?page=user-feedback/user-feedback.php/page/2/ The bold part is your plugin page, so when you go adding parts onto that URL it’s considered to be part of that URL. If you use this instead it should work no problem. /wp-admin/admin.php?page=user-feedback/user-feedback.php&paged=2 Note: You can actually … Read more