Title: Add new link
Last modified: August 20, 2016

---

# Add new link

 *  [Pamela](https://wordpress.org/support/users/infoknutsford-softwarecouk/)
 * (@infoknutsford-softwarecouk)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/add-new-link/)
 * What is the easiest way to add a new link to the left hand navigation in the 
   admin side to a php page. I want to add a page containing a form. Do I do it 
   as a plugin somehow? Thanks

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

 *  [Ryan Duff](https://wordpress.org/support/users/ryanduff/)
 * (@ryanduff)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/add-new-link/#post-2162804)
 * This goes over adding menu items. [http://codex.wordpress.org/Adding_Administration_Menus](http://codex.wordpress.org/Adding_Administration_Menus)
 * I would recommend sticking to the standard options page format if you’re adding
   a page with some sort of form to the admin side. That’s discussed [Here](http://codex.wordpress.org/Creating_Options_Pages)
 *  Thread Starter [Pamela](https://wordpress.org/support/users/infoknutsford-softwarecouk/)
 * (@infoknutsford-softwarecouk)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/add-new-link/#post-2163001)
 * Under wp-contnet/plugins i have created a libray called courses.. UNder courses
   I have a page called courses.php. This contains
 * <?php
    add_action(‘admin_menu’, ‘course_create_admin_menu’); function course_create_admin_menu(){
 *  add_object_page(‘Course Dependencies’, ‘Course Dependencies’, ‘manage_options’,’
   course dependencies’, ‘course_order’);
    }
 *  function course_order() {
    ?> <div class=”wrap”> <h2>Course Dependencies/h2>
 *  </div>
    <?php } ?>
 * No link appears in the admin menu though. What am I doing wrong? Thanks
 *  [Ryan Duff](https://wordpress.org/support/users/ryanduff/)
 * (@ryanduff)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/add-new-link/#post-2163062)
 * For the most part that looks right, but I do see 1 typo.
 * On line 5 your have “add_object_page” … that should be options, not object.
 * `add_options_page('Course Dependencies', 'Course Dependencies', 'manage_options','
   course dependencies', 'course_order');`
 * I’m also assuming that you have it in either your theme’s functions.php file 
   or in a plugin file with a correct plugin header so that you can activate it.
   If its not in either of those places, the code won’t run.

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

The topic ‘Add new link’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Ryan Duff](https://wordpress.org/support/users/ryanduff/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/add-new-link/#post-2163062)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
