Usually, plugin and theme authors need to provide access to a settings (options) screen so users can customize how the plugin or theme is used. The best way to present the user with such a screen is to create an administration menu item that allows the user to access that settings screen from all ...

learn more… | top users | synonyms

27
votes
4answers
40k views

Changing Admin Menu Labels

I have spent the last day using the functions.php file to fully customize WordPress for my client sites. I am amazed at how much I have been able to accomplish and how much easier it will make things ...
0
votes
0answers
7 views

Change the highlighted Admin Menu Page?

I want to add a shortcut for editting a Page to the admin menu sidebar. Let's say the name is "Home" and its Page ID is 10: add_menu_page( "Home", "Home", "manage_options", ...
1
vote
2answers
36 views

Declaring <?php ?> in variables

I need to put the PHP <?php global $' . $icon_var . '; echo $' . $icon_var . '; ?> inside the variable of a custom menu structure, but it gets commented: <a ...
1
vote
2answers
517 views

Admin pages have no content

Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, ...
0
votes
1answer
445 views

Howto: Use Custom Post Types as Submenu Items in Admin

In a plugin, i've created 3 Custom Post Types, for example: Dogs Cats Goldfish I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu ...
0
votes
1answer
396 views

How do I alter the position of a Custom Post Type menu item within my plugin admin menu?

I'm writing a plugin (for the first time, so bear with me!) which includes a custom post type; 'Programmes'. In the admin menu, I've set up a new menu group for the plugin, and I have the 'Programmes' ...
0
votes
0answers
29 views

Admin panel specific page only with admin_head for 4.1?

<?php /* Plugin Name: Header Problem Demo Plugin URI: http://wordpress.stackexchange.com/questions/215190 Description: Shows how old admin_head-{page} method no longer works Version: 1.0 Author: ...
2
votes
5answers
3k views

Make sub menu items a main link in the admin menu using fuctions.php

I am trying to customize the admin area using the functions.php file to make things easier for my clients. One request I have got before and hope to be able to accomplish, is to move some of the sub ...
0
votes
1answer
2k views

Retrieve and display data from custom db table in admin area?

So, i'm having a bit of an issue with a plugin i'm developing, I wonder if anyone can shed any light on the situation, as many, MANY searches have come back with zero help. :-/ Basically, my plugin ...
0
votes
0answers
14 views

Custom post type - hide submenu and use only one post?

I'm using register_post_type to create a menu item called "Annonsering" in the Admin panel, with the following code in functions.php for it: register_post_type( 'annonsering', array( ...
1
vote
1answer
2k views

Admin Menu - Highlight top-level menu when on a sub-menu page (without showing sub-menu)

This is the current situation: I am writing a plugin that has a top-level menu page The plugin also contains other sub-menu pages The sub-menu pages are not assigned a parent slug (thus they do not ...
0
votes
1answer
30 views

Separating a custom taxonomy from blog post-type

Whenever I invoke register_taxonomy in my site's custom plugin, all taxonomies are created as children of the blog post-type in WordPress by default. I just want them to be top-level items in ...
4
votes
1answer
43 views

Is there a way to keep a custom menu expanded when editing a custom post type?

I am building a plugin that has a custom menu with pages under that menu. A few of those pages are custom post types. I would like to have the main menu stay open when I am on one of those custom post ...
0
votes
1answer
35 views

Duplicate “Pages” Item in Admin Menu

I'm registering the following post type: register_post_type( 'post', array( 'hierarchical' => true, 'public' => true ) ); Now I have duplicate "Pages" menu items in WordPress ...
0
votes
3answers
38 views

jQuery datepicker not showing on admin menu

Nothing happens when I select the datepicker field. This is the code for the field: <input id="sticky_date" name="sticky_date" class="datepicker hasDatepicker" type="text"> The javascript ...
1
vote
1answer
25 views

Show media-frame-menu on custom Media Frame

I have a plugin I built that adds a custom media frame with the following: media_frame = wp.media.frames.media_frame = wp.media({ title: 'Select your images', button: { text: 'Use Image' }, ...
0
votes
2answers
2k views

Why I can't change the permalink of this page?

I have the following problem with a permalink: if I open this page (it is implemented as a static page) on my local website: localhost/wordpressAsper/archivio it automatically change it into ...
0
votes
0answers
23 views

1 Custom Post Type not appearing in admin

I am facing an issue. I've created a function for custom post types. This is my code. function my_cpt(){ $labels = array( 'name' => 'SM & Points Templates', 'add_new' => ...
1
vote
1answer
22 views

How to remove menu installed in wp-admin by a theme?

I installed Placester theme.And then disabled it, and deleted it. But there is still a menu there. How can I remove it? The only installed plugins are: Akismet Contact Form 7 Google Analytics by ...
0
votes
1answer
15 views

Plugin option for input box validation

I'm crating a plugin option page from the code below. However, it does not explain how to get validation on the input fields. How do I get validation on id_number for NUMBER ONLY? ...
0
votes
0answers
24 views

Pagination in plugin's backend

I am displaying a list of posts in the plugin backend but I can't seem to get the pagination to work. I used the standard approach of getting the "paged" variable and then passing it to get_posts()'s ...
0
votes
1answer
39 views

How can I move Customizer menu item to first level in WP Dashboard?

How can I move Customize menu item from Appearance menu to first level menu items in WordPress dashboard so it would be below Appareance menu? Also how can I change the name Customize?
1
vote
1answer
15 views

reorder plugin menu position

Looking for a function that I can use to reorder the admin position of a 3rd party plugin, and that will still work once said plugin gets updated. Backstory AIO webmaster and All In One Events ...
0
votes
1answer
31 views

Admin custom option screen not saved unless user manage_options capability

I am running into exactly the problem described by this Trac: https://core.trac.wordpress.org/ticket/14365 I see that one of the devs added a Diff here: ...
0
votes
0answers
1k views

Getting 404 page not found error while trying to access add new plugin / themes

I am getting 404 page not found error while trying to add new plugin or view installed plugin in my admin panel. i am using Hueman theme. every time i tried to use some option of admin panel i am ...
0
votes
1answer
117 views

How to add attributes to WordPress Admin Sub Menu List Items

I have been trying to find a way to add a class or an id to my custom administration sub menu. I only see a class on the first menu item. I would either like to add a css class or an ID on my sub menu ...
0
votes
0answers
39 views

How to add a class to wp-admin custom sub menu item?

I was given the following code snippet: <?php add_action( 'admin_init','acme_custom_menu_class' ); /** * Iterates through the menu items in the dashboard and then applies a custom class * ...
0
votes
2answers
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 ...
1
vote
2answers
2k views

Add a Menu Link (to a Wordpress Page) in the Admin Menu/Sidebar

I am trying to add a link, in the Admin Sidebar, that links to one of the pages I've created in the PAGES section. For example, I've created an ABOUT page. So in the sidebar I would like a link to ...
0
votes
2answers
86 views

Show Wordpress Plugin Menu(Admin) To Editor

I am an Admin of wordpress website and I have created one user with Editor role, I have installed one plugin Pretty Link(https://wordpress.org/plugins/pretty-link/) this plugin shows its menu on Admin ...
2
votes
1answer
33 views

how to only add a top-level admin menu without it creating a sub-level-menu

Here is a the code snippet: add_action( 'admin_menu', 'travel_site' ); function travel_site(){ add_menu_page( 'Travel Site Menu', 'Travel Site', 'manage_options', 'travel-site-menu', ...
0
votes
1answer
23 views

How do I disable certain menu in editor user administrator page

How do I disable the media, pages, comments, profile and tools in editor user administrator page?
5
votes
2answers
8k views

Remove “posts” from admin but show a custom post

After checking out: http://codex.wordpress.org/Function_Reference/remove_menu_page, I successfully use the following code to hide some stuff from the menu: add_action( 'admin_menu', ...
0
votes
0answers
18 views

Add custom option to admin menu wordpress

I need to create a new option in my wordpress admin menu, I know I can create this using add_menu_page() but what I specifically need is an option to 'Add Property', which has similar options in there ...
0
votes
0answers
158 views

Plugin admin menu: How to associate a hidden submenu page with a visible one?

My plugin has the following (simplified) admin page menu structure: // list of plugin items add_menu_page( 'My Plugin', 'My Plugin', 'edit_pages', 'my-plugin', ...
2
votes
2answers
71 views

How do I remove the entire left nav bar in admin for certain level users?

I know how to remove items from the left nav bar (hook into admin_menu and do global $menu; unset( $menu[ __( "Posts" ) ] ); for example). But it still shows a left nav bar (with nothing on it). I ...
3
votes
2answers
2k views

Plugin View Details Link

How do I get the [View details] link to appear on the Plugin admin page in the Description area? The plugin is working fine, the version and authors (with links) show up fine, but no [View details] ...
0
votes
2answers
3k views

Show custom taxonomy inside custom menu

I have a custom menu using add_menu_page: add_menu_page('My menu' , 'Some text', 'read', 'nwcm'); Under it, I show a custom post type menu item; // Create the news custom post type ...
0
votes
0answers
43 views

How to add class or id to menu item added with add_theme_page()

I added a menu item to the Appearance menu in the admin area using add_theme_page(). Is there a way to add a class or id to it so I can style it? I just want to change the font color a little, but I ...
0
votes
1answer
201 views

$wp_customize->remove_section for customizer setting?

I use an underscores theme and try to remove the nav menu without any result : $wp_customize->remove_section('colors'); // works $wp_customize->remove_section('background_image'); // ok ...
2
votes
2answers
2k views

Add an admin page, but don't show it on the admin menu

I have a custom plugin 'Charts' that has it's own menu. In that menu are links to the 3 pages for the plugin - 'Charts', 'Add Chart' and 'Edit Chart'. However, I don't want to display the link to ...
1
vote
1answer
68 views

How to send little data between admin pages of my plugin?

I have a plugin that creates two pages in admin menu: /wp-admin/admin.php?page=list-records /wp-admin/admin.php?page=add-edit-record I'm regularly using add-edit-record to to create some sort of ...
0
votes
0answers
17 views

Get admin bar search fierld into the front-end

In a regular Wordpress installation, in the admin bar in the top, there's a search button. Can I somehow use this button/bar in the frontpage, and how so? Thanks in advance : )
1
vote
3answers
3k views

Hide widgets/plugins from dashboard

I have two plugins in the dashboard, SEO Wordpress and Custom Content Type Manager, and for security reasons I want to hide these from dashboard. How to do that? I tried to hide the SEO Wordpress ...
16
votes
1answer
3k views

WordPress admin menu formatting issue

I'm having an issue with my admin menu in WordPress. As you can see in the image below the formatting of the menu is out of order. This happens whenever I first land on one of the admin pages but if I ...
0
votes
0answers
20 views

Strange problem with overlapping / disappearing Text in the admin backend in WP 4.3 [duplicate]

I experience a very strange issue with all Wordpress installations I'm in charge of. Text in the backend in the left hand menu overlaps. Reloading without cache makes it disappear for some time. When ...
0
votes
1answer
36 views

Admin: sub menu doesnt display under apperance when activate my themes

I got a strange issue in WordPress. I build a themes for WordPress. when I activate my theme, some sub-menu under appearance in admin panel where missing. If I activate another themes it works ...
0
votes
1answer
35 views

Disordered sidebar in admin panel of self-hosted blog network [duplicate]

This is how my self-hosted blog network's sidebar started to look, starting from yesterday: Can someone tell me, what is going on or what am I missing? Tested on Chrome on two different computers ...
4
votes
2answers
2k views

Admin sidebar items overlapping in admin panel

Before to report this to wordpress I would like to know if it's just me or it's actually a bug. I noticed also another user that asked on the wordpress forum but he hadn't an answer for that: ...
0
votes
1answer
86 views

Redirection to external site on admin

I have a menu on Admin which opens a page in admin. The issue is that when I open that menu it redirect to another site like www.abc.com, the admin menu includes DB connection and it list the product ...