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

2
votes
1answer
555 views

Updated to version 3.8 and Admin pages are very slow. How to diagnose problem?

I manage a large multi site Wordpress installation with about 300 hundred users and blogs. The server is blocked from making internet requests, so I have defined a proxy service in wp-config.php ( ...
1
vote
1answer
99 views

page not updating with database

I have code which updates the database fine, but the page doesn't update correctly! I have to refresh the page a second time for it to update correctly. Here is the code below ...
0
votes
1answer
16 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
1answer
13 views

Admin tabs for custom plugin

So I am new to WordPress plugin development, but I try to learn as fast as possible. Basically, I try to create a tabbed navigation for my custom plugin. What I've done so far, you ask? one function ...
0
votes
1answer
16 views

Custom Post Type Causing Admin Sidebar UI Issue

I created custom type plugin, that if it is activated will make admin sidebar scroll follow along the admin screen height, instead of let it stuck. What makes it doing like that?
0
votes
1answer
22 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
1answer
27 views

How can I pass value to function in add_menu_page?

I was use to pass value to function for the below menu. add_menu_page('Competition Manager 2013-2014', '2013-2014', 'manage_options', 'manager_2013_2014', 'manager_2013_2014', plugins_url( ...
0
votes
1answer
55 views

Restricted access for other user roles

I have made some restrictions on other user roles than the administrator. I've made it because I use WooCommerce. I have added the following code to my themes functions.php file, and it works fine. ...
0
votes
1answer
64 views

Issue on CPT Custom Menu Position in WP

I have Two CPT as "Dress" and "Casual" and I would like to position them close to each other exactly after the "Dashboard" in the Menu. I have this code in my custom post type for both: ...
0
votes
1answer
27 views

How to change the default url for 'Posts' link?

I would like to change the default url edit.php to edit.php?category_name=photos when I click on "Articles". Thanks
0
votes
1answer
96 views

menu_order not working with slugs that start with admin.php

I am filtering the menu_order hook (codex link -> http://codex.wordpress.org/Plugin_API/Filter_Reference/menu_order) to change the order of my links in the admin menu. Currently the ordering will not ...
0
votes
1answer
92 views

How can I reorder admin bar items?

I have a plugin that adds custom admin bar items, but I'd like them to appear all the way to the left. I know I can add and remove menu items with $wp_admin_bar->add_menu() etc, but how can I ...
0
votes
1answer
38 views

How can I modify text in admin bar?

I am looking to change 'register' to 'join' in the wp admin bar for logged out users. How can this be achieved?
0
votes
1answer
53 views

Add internal page to admin menu

i want to put an internal wordpress page (for example Contact page) to the admin panel, in order to dont have to go though Pages->All Pages, is it possible? with the above code it seems that it can ...
0
votes
1answer
44 views

Custom admin menu for a selection of pages

I have a site with 30-35 pages. The customer only needs to edit 3 of them on a regular basis. So to make it simpler and easier for them in the backend, I would like to create a new admin menu item and ...
0
votes
1answer
176 views

Wrong current class on admin menu with add_submenu_page()

I'm writing a plugin that displays a post/page list in the admin menu, as a submenu for each post type. Here's the code I've got far: http://pastebin.com/DmUGfzxN The lists are showing and linking ...
0
votes
1answer
88 views

Adding search box for admin on custom admin page

I have fetched some rows on my custom admin page (using hook for adding admin menus). Now I want to add a search box on that page to display only those rows with the 'title' column containing searched ...
0
votes
1answer
88 views

Settings API - Checkboxes validation in a menu with multiple subpages

I'm building a theme using the settings API. I have a top level menu with multiple subpages and everything is working fine, except checkboxes. I am saving the options to a single options array. This ...
0
votes
1answer
62 views

Is possible to create a custom link that creates a post that's already categorized?

I know this is not really a coding question but here goes. So is it possible to add a link to the WordPress Admin Sidebar that links to a New Post page that is automatically categorized as a category ...
0
votes
1answer
94 views

Grant access to admin menu?

I'm trying to grant the user role 'editor' to have access to the Users top-level menu, and then control which sub-menus they have access to. The add_action lives in the _construct method. add_action( ...
-1
votes
1answer
125 views

Admin Menu new tab external link

In a clients site i needed to add a menu item under the dashboard, this link is to go to a external url. i managed this with the following code: add_dashboard_page( 'redirecting', 'Docs', 'read', ...
1
vote
0answers
70 views

Removing “Sub-menus” from My Sites Drop-down in Admin Bar

How does one remove the "sub-menu" that appears to the right of each site listed in the My Sites drop down from the admin bar? That is, I want to have a list of My Sites without the Dashboard/New ...
1
vote
0answers
215 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 ...
1
vote
0answers
58 views

What action/filter/function determines “current” class in WP Admin Menu

I have created a submenu page for the Media List Table. The link actually points to a custom view I have created called Resources. I am looking for the correct location where the Admin menu determines ...
0
votes
0answers
9 views

Post meta not appear in admin edit menu for custom post type

I have a custom post type 'Vehicles' within I have a taxonomy 'cars'. Also a front end adding from a html form. After the form is send, here is a sample what actually is happening. My idea is to hook ...
0
votes
0answers
20 views

Form request to page in admin panel

I'm current creating a small WordPress plugin for personal use and i have a problem with making forms working. Since i found some problems using the same page with refresh i created another php page ...
0
votes
0answers
23 views

Create Administration Menu

Long story short, I am creating an Administration UI for my Homepage Slider, therefore I am hooking to the admin_menu as explained in the wordpress codex. Basically, structure wise, I have only to ...
0
votes
0answers
43 views

How to give a File Upload option in wordpress Widget backend?

I want to use a file upload Input option where User can upload a Excel file on backend and the widget will save the file in uploads directory and save the file link in the $instance variable of ...
0
votes
0answers
296 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
0answers
55 views

How can I add an Export option to a WP_List_Table

I have an admin page that extends the WP_List_Table class to generate a table of results from a custom database table. I am trying to add a button that will enable the admin user to export the results ...
0
votes
0answers
41 views

How can I hide any submenu item from dashboard menu but still have access to it from direct url

I just want to hide a page but I want to access it by directly entering its url. But I am unable to access that page after remove_submenu_page() function. I get this error: You do not have sufficient ...
0
votes
0answers
21 views

adding access to a specific post in the wordpress admin left menu

I've added a custom post type on my wordpess called "Perso". here is the code : // Register Custom Post Type function custom_post_type() { $labels = array( 'name' => ...
0
votes
0answers
36 views

Editing Admin via Child Theme

The theme I'm using provides an admin page that lets me easily setup jQuery sliders on my homepage, but it limits me to five. Now I'm able to go into the actual theme files and edit these so that the ...
0
votes
0answers
12 views

User info in the admin sidebar

I think nobody has yet think of this, hope someone can help me. Im trying to add a user info pannel in de admin sidebar, right at the top. Just like the wp-admin-bar-my-account in the admin bar, just ...
0
votes
0answers
40 views

Granting Author the capability to access a submenu item under Tools

I need the Author role to have the capability to access a submenu item (a third party plugin item) under the Tools menu in the admin. By default WordPress grants capability to the Tools menu for only ...
0
votes
0answers
27 views

Adding a function-based search to the Users admin page

On the Users admin page, I want to add a function-based search criterion. By default, there are filters to search by user role and there is a search box that searches the user data. I would like to ...
0
votes
0answers
61 views

WordPress Admin Bar Not Displaying Both Custom Drop-down Menus

I'm having trouble displaying two custom drop-down menus in the WP admin bar. What I want is the first drop-down to display the back-end (editing part) links of every page and the other to display the ...
0
votes
0answers
331 views

Appearance->Editor not visible

I'm noticing that the editor is not visible from past few weeks. It's working fine on my other WordPress sites but in one site it's not visible. I tried changing theme and deactivating plugins but ...
0
votes
0answers
17 views

Navbar list items changing place

I am using wp-bootstrap-navwalker to create easy menus with Twitter Bootstrap. Everything works fine when setting menu up and everything is displayed. But when I enter the pages on the site the ...
0
votes
0answers
237 views

Custom Taxonomy Showing in WP Menu

I have 3 taxonomies bundled with my custom post type. I have noticed my custom post type(cpt) and 2 taxonomies won't show in the Wordpress menu system but 1 taxonomy will. Can anyone point me in the ...
0
votes
0answers
112 views

Check with jQuery value of checkbox from custom admin panel

i am trying to create my first admin panel for my theme. I have a simple checkbox which i think is working. Where is this information stored? Is this information stored in the database? How can i ...
0
votes
0answers
65 views

Script not working correctly produce error: An unidentified error has occurred

I am developing a wordpress theme while adding a category from admin panel it doesn't show the category until I refresh the page and when I delete the same, it produces an error: An unidentified error ...
0
votes
0answers
51 views

Unsure how to add simple checkboxes that write to a small table to admin

I've been doing a lot of reading on the add_meta_boxes...but there's so much information that I'm confused about when to use them. I have a little plugin that writes out some checkboxes and then when ...
0
votes
0answers
37 views

Plugin menu replaced by another plugin?

Sorry if my title is not clear as i'm not sure what i'm asking. Haven't seen this issue in my searches on the stack-exchange sites. Note I am not the author of either plugin. So the issue I am having ...
0
votes
0answers
130 views

Show custom taxonomies in admin panel under custom post type

I have added a custom post type called "product" to my theme. I have also created a custom taxonomy for this post type called "product_category". In the admin panel, the custom taxonomy shows up ...
0
votes
0answers
70 views

Non WP Rewrite Rule to Admin Screen using plugin

I am creating a plugin that uses the administration screen extensively (adapting a rather complex, MVC program to WordPress for Creative Collaboration). I want do use simple URLs so that when a user ...
0
votes
0answers
71 views

Adding iframe breaking admin bar

I need to add an iframe in my site footer for an opt-in form provided by a CRM. However when I add the iframe the admin bar disappears. <iframe src="..." scrolling="no" frameborder="0" ...
0
votes
0answers
43 views

WordPress Menu Targeting

Okay so I'm building out a plugin that generates a list from the $menu and possibly $submenu. I want to loop through that array and generate that list by the menu_slug, but I cannot seem to figure out ...
0
votes
0answers
132 views

Creating an custom admin page for editing widgets

There is always danger in thinking your almost there... The end Goal: A custom page in the admin menus where i can edit a widget I constructed. Where I am now: I have registered a custom menu I ...
0
votes
0answers
342 views

Call to undefined function add_menu_page() on theme activation

I am attempting to activate a theme that works perfectly on one WordPress install. I have matched the plugins installed up and copied the theme over but when I go to activate it I get... Fatal ...