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

0
votes
0answers
10 views

How to check an admin submenu already exists?

To check if a menu exists, I use this: if ( isset ( $GLOBALS['admin_page_hooks']['menu-slug'] ) ){} But it doesn't work with submenus. How can I do the same for submenus then? Thank you. EDIT: ...
0
votes
0answers
11 views

Numeric values associated to admin menu bar

I'm customizing my admin left hand menu and am having an issue coming up with some of the numbers. I've even gone through the option of counting as I save out my code to confirm their sorting order ...
0
votes
1answer
12 views

Adding direct link to post editor in admin menu

I'm trying to make a shortcut in navigation that will take user to one certain post. So far I'm using add_action('admin_menu', 'add_custom_menu_position'); function add_custom_menu_position() { ...
0
votes
0answers
11 views

How to get the Latest Menu Options to be displayed in Wordpress Custom Menu

I have donated about 5 plugins to Wordpress. Now my requirement is to show the updated Sub-Menus options (in admin panel) by checking all plugins (by selecting the latest version of the five plugins). ...
0
votes
0answers
11 views

Creating menu not working with OOP Plugin

I am trying to create a test plugin to practice my OOP with WordPress, I am trying to simple add a menu item into the WordPress admin section. When I activate the plugin it should add the menu item ...
0
votes
0answers
7 views

Ensure widget admin js fires in Widgets and Customizer

Doing a long-overdue update of a plugin. I have some JS that loads in the admin side to react when a user changes a select value in the widget options. $('#accordion-panel-widgets, ...
0
votes
0answers
22 views

Dislay Admin Notifications through Ajax

I am writing a plugin that will require its own settings page in the WordPress admin menu settings section. I have done most of it correctly, and I am stuck at one point. I understand that in order ...
0
votes
0answers
19 views

Admin page menu keeps bugging out

I've been having a problem with my WordPress installation on my Debian LEMP VPS. On the WordPress admin page (example.com/wp-admin/index.php) all the items on the left menu bar keep displacing ...
0
votes
0answers
21 views

How to give Editors ability to edit menus but restrict full access to other Appearance menu items?

I typically set clients up as Editors on their site so they can focus on what is most important to them - editing pages and posts. I find however that this removes the Appearance menu and then the ...
0
votes
0answers
9 views

Modifying WooCommerce Admin Menu causes Error in Media Upload

I'm trying to modify the WP-Admin menu for ease of use. I'm using standard code-based modifications utilizing the global $menu variable. global $menu; if( class_exists( 'woocommerce' ) ){ /* This ...
0
votes
0answers
27 views

wp_is_mobile() inside js

I've stumbled upon a issue that i can't fix. I've implemented a autocollapse menu ..all works fine UNTILL i go to mobile version where the wp core's menu bugs out with my menu js code. Basicly i ...
0
votes
1answer
21 views

Renaming post to something else, breaks dashboard if edit_posts is false

I've been changing the name of the "Posts" to something else with the following code: // Change menu labels function xxx_admin_menus() { global $menu; global $submenu; $menu[5][0] = ...
0
votes
0answers
20 views

Dynamic admin submenu

I'm creating a plugin for WordPress with dynamic sub-menu's fetched from the server. Putting the dynamic loading of sub-menu's into the menu_setup() hook function would slow down other WordPress ...
2
votes
0answers
99 views

Custom Post Type Settings page, choose page to display archive

So, I followed the accepted answer of this post Possible to add another setting to 'Front page displays' setting for Custom Post Type but didn't entirely work, had to compare against the ...
0
votes
0answers
20 views

How to link other page?

I build menu in admin name is "Members". This is code file User.php <?php function User_add_menu(){ add_menu_page( 'User Members', 'Members', 'manage_options', 'user-members', ...
1
vote
1answer
78 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
17 views

jQuery.suggest only suggestion is “0”

I'm trying to get suggestions in a text field with data from a database, inside an admin page. The only suggestion I get, no matter what, is always "0".. why? Relevant code parts the ...
0
votes
1answer
59 views

Add logo to admin menu in my plugin

I want to add a simple piece of code: <img src="logo.png"> to the top of the admin menu. I know how to do it if I am just replacing a logo within an already existing class but there is no ...
0
votes
0answers
20 views

Headers already sent error when creating multiple admin menu's

so I am trying t add some admin menu's to a theme file. I have followed the examples and documentation from the codex and almost have things working, but I've run into a little problem when trying to ...
0
votes
2answers
47 views

Is it possible to have dynamic post id # in add_menu_page()?

I use the add_menu_page function in my custom theme builds but when I export my local copy of the site and import it in the production site some of post id numbers change and I have to update this ...
0
votes
1answer
48 views

Multiple custom post types showing up in edit.php

I'm having a bit of trouble (i think) over custom post types in Wordpress. I have created multiple post types and they all work, but there is this one thing which is bothering me. Lets say I have ...
0
votes
0answers
50 views

Fixing admin menu offset

I've encountered a little problem during my plugin development. I've added a search box on all pages and it's working flawless but the only thing that annoys me is that it's causing the menu to ...
0
votes
0answers
17 views

How to make a sortable comment column?

Is there a way to make sortable comment columns? I have managed to create the column and to populate it, but i don't know how to make it sortable. I've found a lot of solution for sortable post ...
0
votes
0answers
15 views

Add a label to main menu (admin)

I want to add labels to the main menu. (For categories for example) Main Navigation (click on this will not do anything) |__ Pages |__ Posts Settings |__ Users |__ Settings etc. If there is ...
1
vote
1answer
29 views

Creating Admin Plugin - Content of a page is displayed at global scope as well

I've started creating a WP plugin which should work only in Admin Area. I've managed to create top-level menu with required sub-menu items, but when I try to print content of my page, it prints it ...
0
votes
0answers
42 views

Simple CSS admin pagination

First of all thanks for your time :). I have a dropdown menu option for the admin menu..but the pages still render at the menu edge. Any css trick to position pages correctly? Thanks in advance.
4
votes
2answers
123 views

Add visit site to your toolbar instead of being in the dropdown

I'm looking for a way to move the "Visit Site" link from drop-down and add it to the main toolbar, just like in the image shown below:
0
votes
1answer
37 views

Hide certain post types from editors

I'm trying to hide a series of posts from my editors in the admin panel based on either custom post type or category (whichever is easiest). I tried adding a function such as: add_action( ...
0
votes
3answers
121 views

Remove Customize Background and Header from Appearance admin menu without CSS or JS

I am trying to remove background and header from appearance menu, but they don't seem to go away! I think it's because I have activated customize, but can I remove them anyway without using CSS or JS? ...
0
votes
2answers
13 views

How can I control which plugins run in the dashboard?

I do not wish to activate/deactivate plugins. But for plugins that have no menu pages/submenu pages, that mostly do things on the frontend, I wish to disable while viewing the dashboard/admin pages. ...
0
votes
1answer
46 views

WP Admin Bar - Get current theme name as custom menu title

I wish to echo the current theme in text in my WP Admin Bar sub menu. How would I go about display a snippet of PHP inside the 'title' => 'php snippet here', ? ...
0
votes
1answer
268 views

How to create menu in Word Press 4.2.2?

How to create menu in Word Press 4.2.2? I have opened a dashboard and there are no so options visible. How to fix that? I want to make a menu for all pages I`ve created. Thank you.
0
votes
0answers
54 views

Css in admin panel of WP or some other BUG

I'm running WP almost a month now, and after it updated automatically(wtf?) to version 4.2.2 or may be from some other reason, I can't edit my menu from the admin panel. Have a look at the screens ...
0
votes
0answers
15 views

How do I add an arbitrary link to the WordPress Admin Menu?

I am looking to add an arbitrary link to the WordPress Admin Menu. Example: | Dashboard | | Posts | | Media | | Custom Arbitrary Link | The functionality of this acts just like a normal button ...
0
votes
1answer
23 views

Add a description/hint field in the admin page of a plugin

I made a plugin and now I'm making an admin page for it. I know how to properly add a field in an admin page but do you know how I can add an description/hint field like this (grey text)? Thanks
0
votes
2answers
22 views

admin menu naming

how can I change the 1st child name of the admin menu in wp? I have upload a picture, I want to have a different name of the 1st child of the menu and the parent will be the same. this is mycode ...
0
votes
0answers
78 views

How to populate a nav-menus meta box with admin menu items

I have successfully added a new meta box to the Appearance->Menus (/wp-admin/nav-menus.php) page called "Admin Pages". Now I need to populate it the same way the standard "Pages" meta box is, but ...
0
votes
0answers
14 views

is it possible to get update link of a theme or plug-in?

I have a custom theme that I developed. I would like to show a admin notice to user who can manage wp. via function cyn_admin_notice(){ $info['last_update'] = ...
0
votes
1answer
70 views

Add a page in admin without adding menu item

In my plugin I have registered a menu_page; now I need another page. How can I add another page to my plugin without adding another menu item? Is it possible to call it by href?
0
votes
1answer
47 views

how to stop wordpress admin menu from scrolling with page

Ive already answered this question but when I came on here I noticed this question hasnt been asked, but the question is: How do you stop the admin sidebar menu from scrolling with the page?
0
votes
1answer
67 views

How to call a certain object/menubar in a PHP file

I made a template and had some help with adding a CSS file to the template. Now I'm stuck on the question, how do I add a certain menubar to my header. Example: topbar - has menu with "Welcome ...
0
votes
0answers
73 views

admin_init not working

I have created few admin menus , one of them was for sending data to an external link , capabilities of those admin menus were custom . Inside admin menu function I have some code like this ...
1
vote
1answer
27 views

With two custom post types, how to make one a child of the other in the admin menu?

Been following Justin Tadlock's nice clear tutorial on how to have one custom post type act as a dropdown for another in the admin edit screen. His example is of a restaurant CPT needing a dropdown ...
0
votes
0answers
9 views

How to put categoies in admin menu

Hi i want to put two categories of post in admin menu which are floorplan and community. So those categorizes directly can see in admin menu. if i am not wrong from function.php i may do it.
0
votes
0answers
89 views

Get admin menu contents on frontend?

I'd like to access the variables $menu and $submenu while not being in admin dashboard. For example I'd like to display their contents in wp_footer. It seems almost impossible to me, since action ...
3
votes
2answers
234 views

List table not rendering when $this->items is filled

I'm attempting to add a list table to a custom admin page. I've been following this guide and this reference implementation. Unfortunately when I define $this->items to add the data, nothing ...
0
votes
1answer
22 views

How to add next height number in Order Attributes inside the Add new page. [duplicate]

By default, when a new page is added it will be given the next highest number not already assigned to a page.
0
votes
0answers
62 views

Admin Sidebar Menu in Tree View

how to make admin sidebar menu in tree view like this plugin ? => Admin Menu Tree Page View I mean, it's only for Pages menu. I wanted plugins list contained in the sidebar menu can be made in the ...
0
votes
1answer
29 views

Removing posts and comments from Wordpress

I am using a plugin which creates both a custom post type for all my "posts" data and also another plugin which entirely handles the commenting system. Therefore I would like to entirely hide the ...
0
votes
0answers
81 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', ...