0
votes
1answer
19 views

Show_in_menu: Admin Menu inside Admin Menu

I am trying to create a custom admin menu in the backend of my Wordpress site. I have added several custom post types to the menu with the show_in_menu argument. I have also added a Settings page to ...
-1
votes
0answers
9 views

Remove few options under Appearance

Hi I know this may be simple to others but I've been search how to remove the few options in the admin dashboard like Menu, Widget and Editor under appearance. Using Html5 Blank Template.
1
vote
0answers
13 views

Appearance Menus Screen - menu item drop down menu not functioning

According to WP, there should be options to remove/edit each menu item on a menu under appearance, but this option isn't showing up for me in Chrome or Firefox. I have administrator control of the ...
0
votes
2answers
25 views

Is It Possible To A Link To The Homepage From The Admin Sidebar?

The closest I've managed to get is: function redirect_to_local_110(){ wp_redirect("/", 302); exit; } function add_home_link() { add_menu_page( 'Course', 'Course', 'read', 'home', ...
-1
votes
1answer
21 views

Why plugin's icon for the menu not found?

Why plugin's icon is not showing in plugin menu ? All code of plugin : add_action( 'admin_menu', 'register_my_custom_menu_page' ); function register_my_custom_menu_page(){ add_menu_page( 'Site ...
0
votes
0answers
24 views

Nested Admin panel sub menus in single menus

i know how to add custom menu in the admin panel and how to add multiple sub menus in the custom menu. But i want to know can we add nested sub menus in the custom menu (WordPress admin panel)? Means ...
0
votes
2answers
27 views

Query for menus in backend (BE)

I want to create a simple plugin (already started) to have in one place recurring tasks (for me as webdesigner) e.g. take site offline, set backend icon, don't show updates and so on... Now I want to ...
0
votes
1answer
12 views

List of WordPress menu item indices?

The following code will rename the "Posts" menu item to "Blog Posts" in the WordPress Dashboard: function lc_change_post_menu_label() { global $menu; $menu[5][0] = 'Blog Posts'; } add_action( ...
0
votes
2answers
42 views

How can I get an array/list of all current WordPress Admin Menu items?

I would like to somehow retrieve a list of all current admin menu items, even the ones created by themes/plugins. Is it possible?
0
votes
0answers
67 views

Plugin action hook fires when it should not (unrelated admin screen)

I maintain a plugin which generates a PDF of a page or post when an icon or link is clicked. PDFs may be cached, and as such, when a page or post is edited, we refresh the cache by regenerating the ...
0
votes
2answers
64 views

Add Labels to Admin Menu ( How To )

I have a custom post type menu called "Notes". It has two basic sub menus: add new and show all. But I want to add more items under these post type but the default array just gave me these. How can I ...
1
vote
1answer
92 views

How to add menu to Dashboard that can be viewed by all users

I am able to add Menu to the Dashboard using the below code, it can be viewed by an administrator. That menu doesn't appear when logged in as an Author or a Subscriber. How to make sure every user can ...
0
votes
0answers
54 views

How do I fix the URL used in the Wordpress admin menu for customize.php

I recently moved a Wordpress-based website to a new domain and updated all references to the old domain in the database, but the "customize.php" link in the Wordpress admin menu still references the ...
0
votes
1answer
45 views

How to change the markup created by menu item only on chosen items?

How to add a checkbox to the menu item in WordPress backend that says "Make this a Mega Menu Container"? In my mind it should look something like this (Photoshop draft): And when the box is checked ...
1
vote
1answer
44 views

Adding an admin menu page showing the link twice - how to solve this?

I'm newbie and I'm trying to create a plugin to add a menu to left menu in admin section. i have create the page but it is working fine. but i find the left menu being displayed twice. how can I ...
0
votes
0answers
42 views

How to add a menu to wp admin area?

I'm looking for a way to add a menu to wordpress admin area,so admin can publish and edit posts on a specific category through this menu(just like POSTS menu we already have inside wp admin). This ...
3
votes
1answer
303 views

Make Theme automatically choose default nav menu

I have been developing a WordPress theme. I want to be able to, once activated, look to see if there is already a menu created in the backend. If it exists then choose it and use as the primary menu, ...
0
votes
1answer
118 views

add_menu_page does not render the expected result

I'm trying to accomplish the simple task of adding a new page to the admin area but it seems that I just cannot wrap my mind around this simple function. Via codex, this is how I'm trying to add the ...
0
votes
0answers
231 views

WP admin broken. Not saving catgories or adding categories to menu

Wordpress Admin panel is not saving categories when creating new post or editing it. Also same problem with adding categories or pages to menu. It just doesn't save changes when I press update.
0
votes
1answer
106 views

learning OOP with wordpress plugin

I used to develop in functional design so far and I am now learning OOP. I stumbled upon following problem. Sometimes in OOP a function needs to send and argument as an array. Example. I want to ...
0
votes
1answer
399 views

How can I make a menu link visible only to admins (without plugins)?

I use a menu on top of my wordpress which shows 3 links. Main page Custom Page Custom Page Can I add a 4th link to my menu which is visible and accessible to admins only (without plugins)? This ...
0
votes
1answer
223 views

How to display custom post meta in the appearance->menus page

I'm working on a website and added a custom meta option for all pages / posts called: "Location". $value = get_post_meta( $post->ID, '_privacy_location', true ); I'd like to add the value on ...
1
vote
1answer
1k views

Renaming a WordPress Admin Menu

I am trying to change the Admin Menu name for "WooCommerce" to "Store Settings". I tried the other code rename posts to articles, etc. but it did not work for WooCommerce. WooCommerce's Admin Menu ...
2
votes
1answer
164 views

Custom taxonomy position in admin panel

I can't figure out how to change position of custom taxonomy menu item in the admin panel. Right now I have custom post type-- custom_1-- and another custom post type-- custom_2. For custom_2, I've ...
1
vote
1answer
141 views

Hide pages depending on role

I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel. I looked in the edit.php file and noticed: } elseif ( 'page' == $post_type ) { ...
0
votes
1answer
321 views

Admin Menu Hack (Left side in Dashboard)

How can I add a Title to my Admin Menu on the left side of the dashboard? Not a link, but just a title? I want do this in my functions and not use a plugin. Also which template file handles this menu? ...
0
votes
1answer
129 views

Lost admin “manage_link” capability WordPress. No “Links” menu item in admin menu

Going slightly mad. In the process of upgrading a client's website to WordPress 3.5.1 we've decided to use the built-in WordPress "Links" system to manage their affiliations. I am using the "Admin ...
1
vote
1answer
105 views

SlideDeck 2, make back-end visible for admins only

I'd like to make the back-end of the SlideDeck 2 plugin visible for admin users only. Also, I'd like to remove that "Insert SlideDeck" button from the editor. How can I do this?
3
votes
2answers
141 views

Move admin menu at the end

I installed a plugin for my users in WPMU and I want to make it appear at the end of the admin menu .... I tried this but the menu never appears at the end: function custom_menu_order($menu_ord) { ...
0
votes
3answers
718 views

How can I disable sorting/dragging of a menu item in the custom menu admin?

I think my problem is partially a javascript problem, but if someone knows of a better way to do this I'd love to hear it. Basically the goal is to "save the client from themselves" by not allowing ...
5
votes
5answers
1k views

Add separator to admin submenu

I would like to add a separator to the admin submenu section, NOT in the top level section. I'm thinking of using javascript and styling to do the job, but I was wondering if there's a more ...
1
vote
1answer
114 views

Get admin menu link

Is there any way I can get the menu link for admins? http://codex.wordpress.org/Function_Reference/edit_post_link Similarly to the edit_post_link() that returns the edit link for loggedin Admins I ...
1
vote
1answer
149 views

Custom Post Type Nav to Subpage

I've registered a post type for an audio plugin, the post type is "Custom Players" in the admin and has its own tab on the admin sidebar. I'm just curious if there's a simple way to move this out of ...
0
votes
1answer
1k views

Sort wp_nav_menu() by menu order

I have made a custom menu handler for the back end, sorting the via a drag drop based on CMS Page Order. The problem now is that it seems that it's not possible to sort wp_nav_menu in any other way ...
1
vote
2answers
2k views

How do I fix this error: Warning: invalid argument supplied for foreach()?

I recently moved a wordpress install from my local instance to a dev server. For the move, I installed a clean version of wordpress 3.4, moved exact duplicates of the file structre, and used the ...
1
vote
1answer
394 views

Limit the menu child levels under “admin > appearance > menus”

in my effort in making the WP backend as user friendly as possible, I'm looking for a way to limit the amount of child (or submenu items) of the menu(s) under "admin > appearance > menus". They idea ...
1
vote
4answers
549 views

Remove Metabox from Menus screen

Been digging into WP files for a bit and think I just might be missing something. The end-goal is to remove the Theme Locations metabox from the Menus screen if someone doesn't have a certain ...
1
vote
3answers
169 views

Remove the whole menu in the admin

How can i remove the whole menu in the admin? I have this code: function remove_menu_items() { global $menu; end( $menu ); while ( prev($menu) ) { $value = explode( ' ', $menu[ ...
0
votes
2answers
3k views

How can I add a menu item to the admin area?

I've used almost all of the Wordpress example code but it still doesn't work. I've put the php file under wp-content/plugins/menuitem/ .The code is simple <?php add_action('admin_menu', ...
1
vote
2answers
127 views

Why am I timing out when using the Menu Editor?

I'm using a more or less fresh local install of WP 3.3.1. A few days ago I set up a couple menus (Appearance > Menus) without a hitch. Today I tried creating a new menu and add a page to it, but the ...
1
vote
1answer
1k views

How can I remove the “updates” menu in the Wordpress Admin panel?

How can I remove the "updates" menu in the Wordpress Admin panel?
1
vote
1answer
170 views

Hard-coding custom menu elements for menu manager

I realize that one can add custom links through the menu manager but is there a way to manually create such components through the functions.php file? More specifically, one example here relates to a ...
1
vote
1answer
333 views

Adding all sub-pages to the menu manager

Is there some simple way which would allow one to add a page to a menu (through the menu manager interface) and be able to define if the inclusion of this item should automatically add all subpages up ...
0
votes
2answers
474 views

“Automatically add new top-level pages” Default

I'm looking for a way to set the default "Automatically add new top-level pages" to be checked when creating a new menu. I haven't been able to find anything on this - any help you could give me? ...
0
votes
1answer
1k views

Admin top level menu, pointing to an external url

I want to create a entirely new top level menu in the admin menu section, and have that be an external link, is this even possible with the current system? The solution that t31os provides in this ...
2
votes
2answers
967 views

Add column to pages table

Hey all i am trying to find the section within the edit.php page where it populates the table with all my current pages. What i want to do is add another colum to the table in order to launch a side ...
0
votes
2answers
2k views

Add section (add_settings_section) to a custom page (add_submenu_page)

I have a plugin page created with add_submenu_page. I want to add a new section there but nothing happens: add_submenu_page('parent', 'Foo', 'Foo', 'manage_options', 'foo-settings', ...
1
vote
1answer
128 views

Settings page above CPT page in admin section

I'm creating a plugin which generates a handfull or custom post types (CPT). I've create a top level menu in the admin left sidebar using add_menu_page(). I then added all CPTs to this menu using ...
2
votes
3answers
5k views

Hide Admin menus per role in Wordpress

I am trying to hide a certain amount of menus for a client. Right now I am using the following code and it is doing its job well, but it removes it for everyone as far as I can tell. As in all roles. ...
0
votes
2answers
137 views

Thesis -style Navigation

I am working on a theme where I would like users to be able to select pages to show in the theme options page much like Thesis. I've been Googling / reverse engineering Thesis for a couple hours but ...