Admin Bar ID Menu

      Geen reacties op Admin Bar ID Menu


There are times that you need to know the ID number of a page or post in WordPress and it can be more painful than it should be to find that number. This plugin does one simple thing: it displays the ID number of the page, post, category, or tag you are looking at in the WordPress Admin Bar. It appends this ID to the edit menu already on the Admin Bar. Needless to say, that means that this plugin is only useful for WordPress version 3.1 or above, since the Admin Bar was first introduced with 3.1.


  1. Notice the number next to the edit link in the Admin Bar, that is the page's ID number.

    Notice the number next to the edit link in the Admin Bar, that is the page’s ID number.


Why would anyone need this?

If you are asking this question, you don’t need this at all. The only time to bother with this plugin is after you’ve been frustrated a few times trying to track down an id.

Why don’t I see numbers on “view” items?

The inclusion of id numbers on the “view” items in the Dashboard only works in WP 3.3 and up. If you are not seeing those numbers, then you may need to upgrade your WordPress installation.


  1. Upload the admin-bar-id-menu folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress



  • added ID number to the “view” items in the Dashboard admin bar
  • used global $post and $_GET[‘tag_ID’] to find even more IDs


  • use the new node modification method required by WP 3.3


  • moved the id into the edit item
  • now appending $wp_admin_bar-menu-edit['title']


  • moved to a plugin
  • using the $wp_admin_bar-add_menu method


  • first implemented in theme