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

1
vote
1answer
17 views

Is there any way to add absolute path for add_menu_page function?

I am creating a plugin for add menu option to WordPress admin and using below function for that: <?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, ...
0
votes
1answer
14 views

Wordpress Multisite giving users access to specific Admin Pages

In need of help here. I have a multisite installation and would want to give access to this page to .../wp-admin/admin.php?page=export to all users in the network. Currently, I only have access to it ...
0
votes
2answers
16 views

WordPress Left Hand Side Admin Menu Always Collapsed

Can anyone please help me with my problem regarding my WordPress left hand side admin menu. I want it collapsed at all times, how do I do that? Well, I'm creating a WP Multisite so I want that menu ...
0
votes
0answers
40 views

Custom sub menu is not showing in admin dashboard

Here I am making one small plugin for learning purpose.I have made one admin menu called Feature Slider and it has three sub menu Feature Slider, Add New Feature Slider and Add new movie. 1st two menu ...
3
votes
1answer
33 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
1answer
21 views

Sub Menu content is being duplicated

In the plugin I am developing I am using the following code to build my menu - add_menu_page('BCRM Plugin Settings', 'BCRM', 'administrator', __FILE__, 'bcrm_settings_page', BOOGIE__PLUGIN_URL . ...
0
votes
1answer
29 views

Limit number of posts under a post type?

I'm building a plugin that registers a custom post type. I'm looking for a way to limit the number of these types of posts at which point the user can no longer 'Add New' posts to this post type. Is ...
0
votes
1answer
81 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
29 views

Custom options page, add_options_page deprecated?

I'm trying to create a page in my theme to allow users to add generic info (phone numbers etc) I followed a tutorial and thought I had something good but it turns out part of it is deprecated. So ...
0
votes
1answer
50 views

How to add custom field option with menu?

Please take a look at below image. Here we can see URL, Navigation Label & Title Attribute under Menu Structure >> Home. I need there a more option called "Data Description". I have a task to ...
0
votes
0answers
29 views

How to add submenu to Wordpress plugin in the same Directory of main Plugin?

I have created a plugin and now i want to add a third party plugin inside of the Main Plugin menu, so it can be submenu. How do you make the second plugin appear? Directory Setup: ...
0
votes
0answers
74 views

How to create custom Admin Pages for Custom Post types and add meta boxes

What I'm trying to do is : Create custom Admin Menus and Submenus add_menu_page Test add_submenu_page Add New no problem so far, both pages appear in the menu. Now I'm not sure how to add the ...
0
votes
0answers
34 views

Create hierarchical menu for custom taxonomy meta field

I've created a custom fields for a custom taxonomy. All works fine so far, I can save, edit and display these fields. Now I want to display these fields in the admin menu as a hierarchical menu like ...
0
votes
1answer
18 views

How can I place a page link to the sidebar admin bar?

Im trying to create a function that place my page link http://mypage.com/mypage in the Admin Sidebar, not in the top Admin Bar like the code bellow does know. function toolbar_link_to_my_page( ...
0
votes
0answers
17 views

Can You Require the Use of JavaScript in a WordPress Plugin?

I commonly use Mozilla Firefox for testing changes I make for a plugin that I'm developing. I also have the NoScript addon installed because it is also my main browser. I noticed that the ...
8
votes
2answers
193 views

Displaying the number of updates available in the Admin area

I am having an issue finding out how to display the number of plugins/updates available to call somewhere else other than the admin header. I found the function wp_get_update_data should be what I ...
0
votes
2answers
24 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 ...
2
votes
1answer
31 views

Add management screens to post type

I am looking to build a theme that has an integrated resume, using custom post types. I have had a look at this question with regards to inserting post types within post types in the admin menu. The ...
0
votes
0answers
30 views

View Details/Edit/etc. view for custom admin plugin

I am working on a plugin for Wordpress that will have formatted data from a couple of non-Wordpress tables in the same database as WP, and I am not quite sure how to go about having something like a ...
0
votes
0answers
74 views

How to create a dropdown on admin panel and print that value on a page or in a post?

Now I am using a custom field for this purpose. But now my client asking some thing like this. Let's say he has to display a car brand on every bottom of a post. The Car Is : Car Name Car Name must ...
0
votes
0answers
60 views

How to sort all admin sub menu items in a custom order

i tried this solution given for this question Re-ordering Admin Submenu Sections to sort sub menu items of all top level menus. But i don't get it to work. I have an array of custom ordering of menu ...
0
votes
1answer
20 views

Possible to switch between admin view and author view?

The wordpress admin dashboard can be a bit daunting for "normal" wp authors. Is it possible for users who need admin privileges to only see the simpler author view, but be able to switch to the full ...
0
votes
0answers
54 views

Get fatal error when I try signing into ADMIN. Fatal error: Call to undefined function wp_unslash()

I am getting this message when I try to get to admin Fatal error: Call to undefined function wp_unslash() in /home/content/a/r/b/arbordogcare/html/wp-admin/admin.php on line 46 I have other ...
0
votes
2answers
26 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', ...
0
votes
1answer
48 views

How to make pages metabox display all hierarchy in menu admin?

Running WP 3.9.1 I've got lots of pages and sub pages. When I get to create menu lots of sub pages doesn't display on the right level, but some do? This is how the pages metabox is displayed The ...
1
vote
2answers
173 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
1answer
41 views

Add_menu_page() error message -> “You do not have sufficient permissions to access this page”

I'm currently building a website for a friend and have assigned him the user role of editor. I don't want to give him an administrator role in case he breaks the layout. Anyway, I am using ...
1
vote
1answer
80 views

Make a taxonomy column sortable in the admin?

I have a taxonomy term I have set to show as a column in the admin UI for my custom post type: add_action( 'init', 'create_asset_tax' ); function create_asset_tax() { register_taxonomy( ...
0
votes
0answers
22 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
1answer
44 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
68 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
2answers
41 views

Assigning a custom post type to a custom page

I'm trying to add a custom post type to a custom page called slides (admin.php?page=slides) and it doesn't want to work. This is my first attempt at a technical plugin using pages. The custom page ...
0
votes
3answers
73 views

Creating a dashboard menu page similar to the “Pages” page

I'm looking to create a group of static pages for a "staff" category, and then have a separate menu option for them in the dashboard, similar to the "pages" option that already exists. What I'm ...
0
votes
2answers
138 views

remove_meta_box for all post types doesn't seem to work

To remove a metabox from all post types at once, using a foreach seems like the logical thing to do. However it doesn't always work and I don't understand why. For examlple viewing the "Post" post ...
0
votes
1answer
26 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
0answers
38 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 ...
1
vote
1answer
39 views

Why use the Settings API over a new administration menu?

I'm writing a 'quote-me' plugin which provides the end-user with a quote based on data they submit through a front-end form. The quote is calculated according to a price list. The price list varies ...
0
votes
2answers
77 views

How to group navigation items in the admin panel

I have more than 50 custom post types which I have created using the Pods plugin. The problem is that the left navigation of the admin panel looks really busy and messy and it takes a lot of time for ...
0
votes
2answers
59 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?
1
vote
1answer
47 views

Backend option to include a javascript file on specific pages?

I am working on a template that my coworkers will be using to populate content. On some of the pages there will be a slider or multiple sliders but on other pages there won't be any. Because of this, ...
0
votes
0answers
30 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 ...
2
votes
2answers
208 views

Wordpress add_options_page() function not considering role

I am new to WordPress plugin development and i am stuck at why the wordpress function add_options_page() is not accepting role. This is my code which is not working add_action('admin_menu', ...
0
votes
2answers
94 views

Create dynamic wordrpess blank page

I've created a submenu in wordpress using add_submenu_page: add_submenu_page(null,'Page Title','Page Title','administrator','page-slug','page-callback'); I want to create another page like this ...
0
votes
0answers
94 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
1answer
55 views

Link to a admin submenu item using a custom link

Situation: I am developing my first Wordpress plugin with multiple admin pages. This plugin has a menu and some submenus in Admin Menu. I am using Wordpress 3.9 on XAMPP, Windows 8.1 Pro. Problem: ...
0
votes
1answer
31 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( ...
1
vote
1answer
132 views

Custom Post Type and taxonomies's labels localization not working

after a few hours serching on the net I decided to ask here my problem. I'm in a multi site environment and I have this custom post type code: $products_labels = array( 'name' ...
0
votes
1answer
18 views

4th Network Site Database Errors?

4th site created but not available in the admin menu or the my sites screen. So the my sites screen /wp-admin/my-sites.php only shows three, not the 4th. The My Sites menu at the top also only shows ...
0
votes
3answers
317 views

Remove ability to access certain admin menus

I am trying to remove some of the admin features for a user with the role of contributor. What i mean by remove some of the admin features is disable them from seeing certain admin menu items, such as ...
0
votes
2answers
122 views

Logout hyperlink within a sub-menu

I have the following secondary navigation menu on my website which has been built using the native WordPress Appearance > Menus feature: I am also using the following lines of code in my ...