Tagged Questions

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
1answer
10 views

admin_head-post.php only works after publish / update

I have made a custom post type with some admin back-end. Currently I am calling scripts using the hook admin_head-post.php but this only seems to fire once a custom-post type has been created (on ...
0
votes
1answer
25 views

Displaying different custom post types under one admin menu

I am creating multiple custom post types that have hierarchies, and a few of them are strongly related like a parent-child. For example, a house custom post type has bedroom and kitchen custom post ...
0
votes
0answers
17 views

Admin doesn't have sufficient permissions to plugin's page

I'm not able to visit plugin page in my admin panel. I have found some advices for debbuging this issue, but I wasn't able to find any solutions in mySQL, everything seems ok. Does anyone has ...
0
votes
1answer
18 views

Prevent custom taxonomy from being added to admin menu?

I have several custom post types, which share two custom taxonomies (location and service). The custom taxonomies show up in each post type menu, and it just seems a little redundant. My client isn't ...
0
votes
1answer
32 views

How do I add an item to the WP admin menu?

I want to add an item to my WordPress admin menu - "News" - it's to contain a list of articles written about my company. Each article will consist of the following metadata: Headline Date Link to ...
0
votes
2answers
42 views

Appearance > Menus

I have added custom WordPress admin menu and pages, however, I would like for it to appear in the "Appearance > Menus" section so that the user can add it in the menu structure of their website. ...
0
votes
0answers
31 views

How to show specific meta keys of all posts in admin panel?

I have some common meta keys on every post. Ex: hotel_person, hotel_number All the posts have these two meta keys. I want to show these meta key values and the post titles. All these values and ...
0
votes
0answers
12 views

Remove DEFAULT POSTS (not custom ones) in admin panel

I am trying to hide the post link in the menu in the admin panel, my code is the following. Any idea what might be wrong? I added that string at then end of my functions file. Thanks a dozen! ...
0
votes
1answer
17 views

jQuery post method in admin menu

I'm trying to use this: jQuery(document).ready(function(){ jQuery("#button").click(function(){ jQuery.post("post_file.php") }); }); on this: ...
0
votes
0answers
17 views

Removing menu item doesn't get removed on edit post

I have removed some menu links for a basic contributor role, just that when the user access the edit post section they re-appear(wp-admin/post.php?post=24731&action=edit). What am I missing? This ...
-1
votes
0answers
23 views

Wordpress Admin Page tinymce not defined

Im building an Admin page using add_action('admin_menu', 'mypage_create_menu'); function mypage_create_menu() { add_menu_page('MyPage', 'MyPage', 'administrator', 'mypage', 'my_page', ...
0
votes
0answers
10 views

Forcing ALL plugin Admin menus into a separate menu

I'd like to move ALL of the menu's generated by various plugins such as ACF, Layerslider, WPMU Dev etc, into a separate menu structure. In short, I'd prefer an item called "Plugin menu's" and below ...
1
vote
1answer
18 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
16 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
23 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
53 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
62 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
35 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
151 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
34 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
93 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
30 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
91 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
41 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
19 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
18 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
198 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
33 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
33 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
46 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
118 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
79 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
21 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
70 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
54 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
321 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
58 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
105 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
24 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
52 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
101 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
42 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
84 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
179 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
31 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
44 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
108 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 ...