How to Add a New Menu Item


Table of Contents

1. Create a Menu Item

Click the “New menu” toolbar button:

A button that looks like a rectangle with a green plus sign

The plugin will insert the new item below the currently selected item.

2. Choose the Target Page

The “Target page” setting determines what will happen when the user clicks the menu. There are four main options:

This essentially makes the menu a copy of another menu item.

You can have as many copies as you want, but watch out for permission conflicts and duplicate URLs at the top level. When two menus have the same target page but different permissions - i.e. one is visible and the other is hidden, for the same role - you can end up in a situation where both items become inaccessible. If that happens, try checking/unchecking the items or using the “hide without preventing access” button.

Choose the < Custom URL > option from the target page dropdown, then enter a valid URL in the “URL” field. You can use both fully qualified URLs and relative URLs. Here are a few examples:

You can use shortcodes in the URL. Admin Menu Editor Pro comes with a couple of built-in shortcodes. Shortcodes from other plugins can also work, but it varies by shortcode.

By default, clicking the menu item will open the specified URL in the current tab. You can make it open in a new tab or an <iframe> by changing the “Open in” setting under “show advanced options”. Note that some sites will prevent you from displaying their pages in a frame.

Embed a Post or Page

The < Embed WP page > option lets you embed an existing page, post or even a CPT item in the WordPress admin and make it look like it’s part of the dashboard. After you select this option, a new dropdown called “Embedded page ID” will show up. Open it and select one of the available pages from the list. If you want to embed a post or a different post type, switch to the “Custom” tab and enter the post ID manually.

When making the embedded page, you can use pretty much any HTML that works in a normal page. Just keep in mind that the WordPress admin usually has different CSS styles than the front-end theme, so some page elements might look different. Also, some shortcodes will not work in the admin.

Here’s an example page that was created using this option (click for full size):

Make an Non-Clickable Menu (“None”)

Choose the < None > option to create a menu item that doesn’t link to anything and doesn’t react to clicks. This is intended as a way to help organise large menus. A non-clickable item can be used as a label, a separator or a section heading.

Tip: You can use the color settings under “show advanced options” to make non-clickable items easier to distinguish.

3. Set Permissions

Overall, permissions for custom menus work the same way they do for built-in menus and plugin menus: just select a role and check/uncheck the item. However, there are a couple of things to keep in mind:

4. Adjust Other Settings

Notes