Title: Sidemenu
Last modified: August 19, 2016

---

# Sidemenu

 *  [Eric Mann](https://wordpress.org/support/users/ericmann/)
 * (@ericmann)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/sidemenu/)
 * I want to add an administrative menu to the right-hand sidemenu of the dashboard(
   over where you find Settings, Plugins, and Users). I’ve managed to find the right
   hooks to manually add a link, and I can get the link to reference my plugin settings
   page.
 * My problem is adding submenus to this new menu, and getting WP to recognize it
   as the current page. I’m using the following code to create the link:
 *     ```
       function rl_add_pages() {
       	echo '<li><a href="admin.php?page=rlplugin/rlplugin.php">RLPlugin</a></li>';
       }
       add_action('sidemenu', 'rl_add_pages');
       ```
   
 * It renders the basic setting page just fine, but I only get the submenus if I
   also add it as a top-level admin menu through the standard admin_menu hook.
 * Any suggestions?

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/sidemenu/#post-875363)
 * Maybe this Codex article will help you — [Adding_Administration_Menus](http://codex.wordpress.org/Adding_Administration_Menus).
 *  Thread Starter [Eric Mann](https://wordpress.org/support/users/ericmann/)
 * (@ericmann)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/sidemenu/#post-875626)
 * MichaelH-
    Thanks for the advice, but that’s not quite what I’m looking for. 
   The hooks in that section of the codex will help me create top-level menus and
   submenus. It won’t help me create the kind of top level menu I want.
 * On the WP dashboard, there are two sets of top menus: On the left-hand side we
   have Write, Manage, Design, and Comments. On the right-hand side we have Settings,
   Plugins, and Users. The right-hand side menus are smaller and less intrusive.
   I want to add a top-level menu on that side, but the hooks in the Codex will 
   only let me add submenus to the existing options.
 * I did try the following, just to see if it would work:
 *     ```
       add_action('sidemenu', 'rl_add_pages');
       function rl_add_pages() {
           add_menu_page('RLPlugin Options', 'RLPlugin', 8, __FILE__, 'rl_options_page');
       }
       ```
   
 * Unfortunately, it didn’t add any pages at all. So far, I’ve only been able to
   add a top-level menu to the left hand side. The only way I can add anything to
   the right hand side is with the code I specified last time:
 *     ```
       function rl_add_pages() {
       	echo '<li><a href="admin.php?page=rlplugin/rlplugin.php">RLPlugin</a></li>';
       }
       add_action('sidemenu', 'rl_add_pages');
       ```
   
 * Like I said, though, this doesn’t really add a menu, just a link to the plugin
   file.

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

The topic ‘Sidemenu’ is closed to new replies.

## Tags

 * [administration](https://wordpress.org/support/topic-tag/administration/)
 * [api](https://wordpress.org/support/topic-tag/api/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)

 * 2 replies
 * 2 participants
 * Last reply from: [Eric Mann](https://wordpress.org/support/users/ericmann/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/sidemenu/#post-875626)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
