Skip to main content

Questions tagged [add-submenu-page]

Adds a submenu page in the Admin section of your WordPress website.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

Create child of child custom page in wp-admin

I'm creating a plugin with custom pages on wp-admin side. I have the main level page, which is actually just the menu and then child pages, which opens different pages. So far it's working as expected....
celsomtrindade's user avatar
0 votes
0 answers
12 views

add_submenu_page add multilevel menu

Im using: // wp-admin hotels list in sidebar function add_custom_submenu_under_add_new() { $args=array( 'post_type' => 'hotel', 'posts_per_page' => -1, 'post_parent' =...
kroma's user avatar
  • 3
0 votes
0 answers
60 views

Custom database table entry edit page

I can display every row of a custom DB table in my custom sub page, but I'm not sure how to implement a single row edit page. Is it as easy as verifying some link query parameter and then displaying &...
fuji's user avatar
  • 101
0 votes
0 answers
365 views

How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?

I want to structure my Plugin folder & file system in a way, where in add_submenu_page when I will click on my sub menu link it will call separate .php file where i will car specific function ...
Bhargav Joshi's user avatar
0 votes
1 answer
43 views

add_submenu_page() issue

I am trying to add a Menu in WordPress Admin Panel. I am using below code. This code is working. add_submenu_page('weather_info', 'Weather Information', 'Weathers', 'manage_options', 'weathers', [$...
Foysal's user avatar
  • 445
0 votes
1 answer
258 views

How to hide plugin submenu title in drop down in admin panel in wordpress?

I have created a plugin that has some sub menus i.e add new & list, besides that I also have pages to update the data, But I don't want to display these sub menus in dropdown. Here is my code. ...
Aziz Khan's user avatar
0 votes
1 answer
39 views

Why won't this submenu page show? - My First WordPress Plugin

Starting to build my first plugin and I'm completely puzzled on why the submenu page won't show? The main page shows up, not the subpage. I've run over the syntax what feels like a million times and I ...
ClevelandWebDev's user avatar
1 vote
1 answer
132 views

Visiting a console submenu page does not expand its parent menu item

*I have moved a custom post taxonomy to another menu item //created a post type that does not appear in admin menu, therefore its taxonomy does not, too $args = array( 'label' ...
Artem's user avatar
  • 305
0 votes
0 answers
194 views

How to create a custom post-new.php page for plugin , no wp menu

I am currently creating an administrator plugin to manage and edit a large amount of separate information about establishments. I recreated a page with the list of articles which is linked to a new ...
Rak Arthus's user avatar
0 votes
1 answer
284 views

How to add styles to a submenu page?

I'm relatively new to WordPress and, I am creating this plugin, where I need a submenu page. I have successfully created the main page and have added CSS to it without any problems. However, I came to ...
Vitor Rodrigues's user avatar
0 votes
0 answers
159 views

How to remove empty menu space when creating admin page without menu title using add_submenu_page

I have added few pages to handle edit, view page that is should not be accessed from wp-admin navigation menu and its a success. But now on my menu, I have empty space as sub-menu. Below are my codes ...
murni's user avatar
  • 37
1 vote
0 answers
47 views

Problem with change url for all subpages (.htaccess)

Im looking for someone who will knowing the main code I have subpages with ugly names http://grimlord.eu/index_pl.php?src=home How cut it for this url grimlord.eu/start Pls tell me how? RewriteCond %{...
yansen's user avatar
  • 11
0 votes
2 answers
383 views

Wordpress add page under admin submenu and retaining the active status of the parent submenu page in the menu

I have added a page in the admin menu(pxmag-menu) and a submenu(pxmag-plans). There is another page(pxmag-plans-edit) set under the submenu(pxmag-plans) as the parent page. public function __construct(...
sariDon's user avatar
  • 265
0 votes
1 answer
294 views

Two e-commerce in two different folders of the same domain

I need to create two e-commerce with woocommerce, one in the main directory of my site in Italian and English for online sales in Europe, and one in a subfolder or subdirectory exclusive for ...
Ugo Ametta's user avatar
0 votes
0 answers
84 views

Bootstrap Theme Migrated to WordPress

Looking for your expertise, as I'm fairly new using WordPress and I'm in the process of migrating bootstrap theme into it. Problem: I have a navigation menu in the header and want to have a ...
devmike's user avatar
0 votes
1 answer
1k views

Add a custom submenu under submenu in a Custom Wordpress Plugin

I know how to add custom menus and submenus for the custom plugin. But for creating another submenu under submenu is what I cannot figure out. What I have: Plugin-Main-Menu Add Update Event What I ...
Savio menezes's user avatar
-1 votes
2 answers
1k views

Error on add_submenu_page() declaration

Was called incorrectly. The seventh parameter passed to an add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was ...
BookingProm Services's user avatar
0 votes
2 answers
2k views

What's the correct way of moving a menu page to a submenu

In one of my client sites, the default comment feature is not needed globally. Instead I'm using it only under a certain CPT (eg. Complaints). With the following code, I moved the parent menu item: "...
Mayeenul Islam's user avatar
3 votes
4 answers
12k views

The seventh parameter passed to add_submenu_page()

I'm testing WordPress 5.3 (5.3-RC4-46673) with my theme. I have WP_DEBUG enabled. I notice the following error in the dashboard now: Notice: add_submenu_page was called incorrectly. The seventh ...
yannibmbr's user avatar
0 votes
1 answer
671 views

Menu with sub-items but without link

while using WP you can change your main menu pretty easy. Still, when I want to create a new menu button, I have to give it a link to some article, category etc. Is there a way to avoid it? In ...
Kacze Apacze's user avatar
0 votes
1 answer
77 views

Submenu Page under Settings in Admin Panel

I have a quick question, I am wanting to add in a new submenu to the 'Tools' section on my Admin Panel but without modifying any of the original WordPress files such as (functions.php, etc..) files. ...
Sema's user avatar
  • 1
0 votes
1 answer
1k views

Same ACF Relationship field for multiple Post Options sub-pages?

How can I ensure that the data saved by an Advanced Custom Fields Relationship field, when on an Options page for a Post type, is separate? Detail below: I have an ACF field group, “Features”, ...
Robert Andrews's user avatar
0 votes
1 answer
22 views

Admin menu hilighting wrong item for CPT

I have two admin submenu items for my custom post type, but only the first one, "General Settings", hilights when either submenu page is being viewed. add_submenu_page( 'edit.php?...
markmoxx's user avatar
  • 221
2 votes
1 answer
309 views

How do I add a Gutenberg editor to a custom options page

Can I add a Gutenberg editor to a custom options page (admin submenu page)? How? I'd like to create a editor for a 404-page, but I'd prefer not to use a standard page for it since our clients might ...
Punchlinern's user avatar
0 votes
2 answers
920 views

Change order of custom submenu link in WP Admin?

I've added a custom link to WP Admin under the Users menu, but trouble is I can't seem to get it to display above the default options. Is this possible? My code: // Add sub-menu option to users menu ...
Brett's user avatar
  • 414
3 votes
1 answer
381 views

How to avoid creating first submenu page that is same as menu page?

I've created menu page and four submenu pages. public function onixion_admin_menu_option() { add_menu_page('onixion','Onixion','manage_options','onixion-admin- menu',array(&$this, '...
Срђан Станишић's user avatar
0 votes
1 answer
392 views

How to have submenus collapsed until they are clicked?

I have couple of main admin menus and sub-menuse underneath them. Main menu1 Sub menu 1 sub menu 2 sub menu 3 Main menu2 Sub menu 1 sub menu 2 sub menu 3 Like ...
Shirantha's user avatar
1 vote
1 answer
1k views

add multipe sub menus using add_submenu_page

I need to add multiple submeus under a single parent admin menu. i can add submenu using following syntax. function register_my_sub_admin() { add_submenu_page( '/pluginname/includes/admin-menu....
Shirantha's user avatar
0 votes
1 answer
3k views

How to use add_submenu_page() for editors?

Currently I load a custom WooCommerce sub menu point in an own plugin like: // Add an additional submenupoint add_action('admin_menu', 'register_mycustom_menupoint'); function ...
Pete's user avatar
  • 113
1 vote
1 answer
963 views

add submenu page doesn't display

I can't display the submenu of my menu when creating a plugin (Beginner). Could you please help me to find my error? My plugin is well activated and the menu_page appears well add_action('admin_menu',...
Rak Arthus's user avatar
1 vote
1 answer
2k views

Admin submenu does not call function to load the page

Context I'm making a big plugin with a complex architecture. I would like in my plugin architecture split pages and menus building on admin side. So I have these classes : Menu.php, Submenu.php and ...
J.BizMai's user avatar
  • 900
4 votes
1 answer
4k views

How to give position to Submenu under custom post type

I am trying to add submenu under my custom post type and i succeeded also but it shows just under the post-type, i want to show it under the taxonomy. How to give a position to the newly created sub-...
Satrughna's user avatar
0 votes
1 answer
28 views

Create an administation subpage containing posts in a certain category

I have a website with 3 post-types. My boss wants to create an additional post-type containing only posts from a certain category. For example, I want all the posts under the category "important" to ...
jipeg's user avatar
  • 1
0 votes
1 answer
2k views

How to See Everything in get_option()?

In theme and plugin development I like to completely run through everything to make sure there are no issues and I'm not getting any errors. ONLY in development do I add the following in my footer....
user9447's user avatar
  • 1,782
5 votes
1 answer
19k views

How to add custom submenu links in wp-admin menus?

Is it possible to add custom links as submenu on menu that already exist in wp-admin? Like for example, under appearance section like this:
Archangel17's user avatar
0 votes
1 answer
765 views

Show category and tag link as a submenu under custom post type submenu

I have created a college management menu in admin, under that i have added some sub menus those submenus are of different post types. Those were working fine. But Category and tags are not showing as ...
Satrughna's user avatar
4 votes
1 answer
2k views

How to change menu page capability

Is it possible to change the capability set for a menu page, previously added with add_menu_page()? I have a third plugin installed, that set a menu page created with a 'manage_options' capability, ...
TorryVic's user avatar
  • 153
0 votes
1 answer
340 views

sub-page settings saving in NETWORK DASHBOARD

In single WP installations, on a plugin's generated sub-page, you put <form action="options.php" ... does the job well. However, in Multisite Network sub-page, options.php doesnt work, nor ...
T.Todua's user avatar
  • 5,850
2 votes
3 answers
2k views

Hiding Admin Page While Keeping Menu Expanded

I am creating a custom admin section. I have the following code: // Top level menu add_menu_page('Books', 'Books', 'publish_posts', 'books', 'render_books_page', '', 17); // Adding this function to ...
Greeso's user avatar
  • 2,204
0 votes
3 answers
4k views

How can I add a sub menu to an existing navigation menu in WordPress?

I want to add submenu to a navigation menu in wordPress through code (not through admin panel) and I am totally new to Wordpress. Any help would be greatly appreciated! Thanks!
Developer's user avatar
1 vote
0 answers
157 views

Role capability issue

I have a custom sub menu item that has been setup for a long time and all of a sudden today one Role cannot see the item on the Tools menu. They can see a couple of other items on that same Tools menu ...
Robert Fitzpatrick's user avatar
1 vote
3 answers
6k views

Insert & order custom post types in/as submenu

TLDR: While in the backend, I would like to add custom post type inside a menu page (which I can do). But I cannot order the resulting submenu pages. I have 3 custom post types “A”, “B”, “C”, and I ...
Cerere's user avatar
  • 231
0 votes
0 answers
856 views

Can't save multiple sections on one page with register_setting

I try to write my first own theme but currently I struggle with making the options with the Settings API. My input values are just not saved and I don't know why. I read this tutorial from Tom ...
theoretisch's user avatar
0 votes
1 answer
742 views

How to keep the plugin submenu open on viewing a custom version of users.php?

I have added to my-plugin submenu a custom view of the user list using users.php and a my_plugin_view argument to filter the request: add_submenu_page( "my-plugin", '...
RafaSashi's user avatar
  • 497
0 votes
1 answer
122 views

How is a widget supposed to reference what is added to custom submenu or addmenu fields?

Stepping into advanced plugin development I've been following along with the Plugin Handbook but I did not see it mentioned how you're to reference what has been added to the settings page. So for ...
user9447's user avatar
  • 1,782
0 votes
1 answer
329 views

Is it possible to use add_submenu_page() to add an item that's a link to edit another page?

I've recently discovered add_submenu_page and was pleased to be able to add my own page under a specific post type. I'm using a callback function to output some HTML directly /** * Display callback ...
Jonny Perl's user avatar
2 votes
0 answers
3k views

Adding a submenu to the Tools menu returns tools.php in a popup box

I am trying to add a submenu to the Tools menu. When the custom Tools sub-menu is chosen, I want it to call a function. That function will echo things out to the browser page that is loaded. My ...
LeonardShelby's user avatar
1 vote
0 answers
863 views

Register submenu on network menu from the subsite

I have a multisite like this: MainSite Site1 Site2 I want to register submenu page on active site in parent page /wp-admin/options-general.php on network in parent page /network/settings.php If ...
maheshwaghmare's user avatar
2 votes
1 answer
80 views

How to change page via login as user and admin

I am using WordPress and I'm trying to develop eCommerce website using WooCommerce. When a user logs in I want to show the following in the menu-bar: Product Category Users profile Orders Cart Then, ...
rohit's user avatar
  • 21
1 vote
0 answers
48 views

Is there documentation reference for forms in menu and setting pages?

Trying to stick to WordPress best practices and improving how I do plugin development I have searched through the codex and developer documentation to see if there is anything indicating what is ...
user9447's user avatar
  • 1,782