Title: Adding Menu&#8217;s in wp-admin/menu.php
Last modified: August 18, 2016

---

# Adding Menu’s in wp-admin/menu.php

 *  [Naatan](https://wordpress.org/support/users/naatan/)
 * (@naatan)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/adding-menus-in-wp-adminmenuphp/)
 * Hey there,
 * I’ve been trying to modify the code in menu.php to add a menu link to the top
   menu bar. However I can’t get it to show up.
 * I know there are functions I can use to show it plugin-wise, but I am trying 
   to hack the original code as I want to modify my wordpress slightly so that I
   can use it as a CMS.
 * The code I am currently using is as following;
 * $menu[46] = array(__(‘Uploads’), ‘upload_organizer’, ‘uploads.php’);
 * and I added this in front of $menu[40]… (etc) as that’s where I want it to appear..(
   I also tried using number 39 or using number 40 and increasing the following 
   menu’s numbers)
 * Like I said though, this won’t work..
 * can anyone tell me how this works?
 * Also, how can I modify which sub-menu gets high-lighted when a menu is clicked(
   ie. I wan’t “Write Page” to be highlighted rather than “Write Post”, when “Write
   is clicked)
 * Thanks a lot in advance 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Naatan](https://wordpress.org/support/users/naatan/)
 * (@naatan)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/adding-menus-in-wp-adminmenuphp/#post-429253)
 * Bump, anyone? 🙁
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/adding-menus-in-wp-adminmenuphp/#post-429260)
 * [http://codex.wordpress.org/Adding_Administration_Menus](http://codex.wordpress.org/Adding_Administration_Menus)
 * thats the only way to explain it.
 * if you dont want to do that, then look at how its done inside the core files.
 * there really isnt a better explanation.
 *  [retsoced](https://wordpress.org/support/users/retsoced/)
 * (@retsoced)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/adding-menus-in-wp-adminmenuphp/#post-429414)
 * That article really doesn’t help much, it doesn’t even seem to cover 2.0 (Icould
   be wrong – but it covers plugins, not hard-coding) I am trying to do the same
   thing, and it seems it is a permissions issue?
 * I found the permissions lists here:
    wp-admin/upgrade-schema.php and added my
   item there, to no avail. I think I’m close, but no solution yet….

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding Menu’s in wp-admin/menu.php’ is closed to new replies.

## Tags

 * [adding](https://wordpress.org/support/topic-tag/adding/)

 * 3 replies
 * 3 participants
 * Last reply from: [retsoced](https://wordpress.org/support/users/retsoced/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/adding-menus-in-wp-adminmenuphp/#post-429414)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
