Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

Display admin sidebar into custom post pages if logged

Is it possible to display the default admin sidebar in a custom post type page (frontend view) if user is logged in, as happens for the admin top bar? If is possible, how can I do this? Any hint?
vvave vvave's user avatar
1 vote
1 answer
50 views

Admin menu link with variable

I used this function to display a log out link below the home icon. But how could I put a variable, for instance the current username, on that link to show a profile page? The function is: ...
markseinto's user avatar
0 votes
0 answers
52 views

Metaboxes inside Tab

I am learning WordPress Plugin development. In this regard I have to save some settings along with Custom Post in Admin Panel under a Menu. Can I place metaboxes inside tab for this issue like the ...
Foysal's user avatar
  • 445
0 votes
1 answer
615 views

Change the destination of the URLs in post.php

The post.php screen lists posts vertically in the admin area [and other post types]. Each item's post_title is a hyperlink, directly above some inline choices. Both the title link, and the "Edit&...
John Dee's user avatar
  • 513
0 votes
1 answer
329 views

Give admin_menu permission to specific users

I created a admin menu for my Wordpress website. The capabillity / rules are set to manage_options. Now I want give permission to another user that is only an editor. Does anybody know how I can do ...
Jop's user avatar
  • 127
0 votes
1 answer
790 views

How to break line / add <br> to ADMIN menu

Disclaimer: This question is not about "frontend" nav menu I am looking for a way how to break line in a menu item label in WP admin sidebar menu, sidereason is that the custom post type ...
jave.web's user avatar
  • 497
0 votes
0 answers
494 views

Show all admin menus in a table

I Made a menu to remove admin menus for people that are not allowed to see it so they don't make changes to the site. But I can't get submenus to display only the main menu's this is the code: &...
Bent's user avatar
  • 1
0 votes
0 answers
327 views

Wordpress Admin Panel Left Sidebar No showing on Post create page

These are two different WordPress sites on post create pages. The first site has left the admin panel. The second admin panel does not have a left sidebar. How can I add the left sidebar on the second ...
Chadsmith's user avatar
1 vote
1 answer
1k views

Backend Checkboxes working – but not visual?

first…sorry for my bad English. Since a few months I have a problem with the checkboxes in the wp backend. They are working, but you can´t see that they are activated. (see enclosed picture as an ...
Rapidpat's user avatar
9 votes
1 answer
3k views

Custom WP_List_Table displays blank rows

I am trying to make a custom WP_List_Table extension to display a custom post type. Here is what the table and the DOM look like. You can see that it is rendering the table rows empty, and no header. ...
chrispytoes's user avatar
1 vote
1 answer
1k views

Dashboard menu missing

I've lost the wp_users and wp_usermeta tables in a wordpress installation. I've recreated them and insert a new admin user. In particular, in wpAA_users (I use the prefix wpAA_), I have now a user ...
Renzo's user avatar
  • 113
0 votes
1 answer
356 views

Highlight active Admin Menu when added though add_menu_page

I added a direct link to a page in the admin menu with the add_menu_page function. Once I click on the link, the About page edit screen opens, great. The problem though, i want the About menu item i ...
Schalk Joubert's user avatar
3 votes
1 answer
3k views

Admin account only shows Profile and Dashboard with no activity

I received login credentials from the person that maintains my company's website. When I login, there is virtually no information on it. I can only access the dashboard which has no activity on it. ...
user7758051's user avatar
0 votes
1 answer
223 views

require/include php file in add_menu()

I'm creating a custom WP Admin Bar menu item with custom HTML inside the dropdowns. Referring to this: https://codex.wordpress.org/Class_Reference/WP_Admin_Bar/add_menu the HTML i want to use is ...
Charlie Wedel's user avatar
1 vote
0 answers
99 views

Move 'current-menu-item' class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen

I've created a custom taxonomy called 'venuecategory' that is hidden by design(not attached to a CPT and does not appear in admin menu). When I'm on this taxonomy's admin page ('wp-admin/edit-tags....
user3173756's user avatar
0 votes
0 answers
51 views

Create Wordpress Menu Item Without Linking to a Custom Page

With add_menu_page there is a required option to add a menu slug that leads to a admin page. I wish to create a custom admin item, but not one that links to another page (I have other plans for the ...
Moshe's user avatar
  • 121
0 votes
2 answers
2k views

Move plugin-settings to 'Settings'-menu in the admin

I hate it, when plugins add their own settings like this: It's cluttered and annoying. Can I somehow move them in under 'Settings': I imagined something like, checking if there is a plugin by the ...
Zeth's user avatar
  • 918
3 votes
1 answer
351 views

renaming an admin menu item with decimal array index number

I am trying to rename a menu item on my administration dashboard. Using the $GLOBALS['menu'], I have found the following array indexes [26.0648] => Array ( [0] => M.E. Calendar ... and [26] ...
boffies's user avatar
  • 33
0 votes
1 answer
875 views

Creating custom admin panel pages without making a plugin?

I have some functionality on my site that I'd like the administrators to be able to handle without going directly into the database. I'm thinking that the cleanest way would be to create new pages ...
AKor's user avatar
  • 137
0 votes
1 answer
1k views

WordPress Admin Menu Order for 'admin.php' pages

I'm using following code to change menu order of WordPress admin panel. function reorder_admin_menu( $__return_true ) { return array( 'index.php', // Dashboard 'separator1', // -...
Faisal Khurshid's user avatar
1 vote
1 answer
1k views

Single category's posts list in admin menu

the "authors" in my site should only be allowed to add/edit posts in a single category (i.e.:News). I am preparing the backend for them and I would like to remove the "Posts" menu and show in its ...
Fabio Marzocca's user avatar
6 votes
4 answers
30k views

How do I set up a webhook?

I have a simple script that sends Slack messages, runs reports and does other things. I would like this script to run directly based after users purchase something on my site. I do NOT want to build ...
William Entriken's user avatar
0 votes
1 answer
46 views

How can I POST or GET to the same admin page from which I am POST-ing or GET-ing

I have made a admin page linked to a Settings -> submenu_item. This page looks like this: http://movahon.dev/wp-admin/options-general.php?page=miama-google-recaptcha%2Fmiama-google-recaptcha.php On ...
Vladimir Despotovic's user avatar
0 votes
1 answer
3k views

Custom taxonomies not showing up in admin menu

I have defined a few custom taxonomies in my functions.php using the following code: <?php add_action( 'init', function() { $labels = array( 'name' => _x( 'Resource ...
Jon's user avatar
  • 171
5 votes
3 answers
6k views

How to remove items from +New admin menu?

I would like to limit the +New admin menu to only show the single sub menu Event ("Veranstaltung"). Basically the users are allowed to create other items as well but not from that +New menu. I ...
sailingthoms's user avatar
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
1 vote
3 answers
10k views

How to change admin menu position of "Media"?

I would like to change the priority/menu order of the "Media" admin page. Is there a way to change that via apply_filter? Is there a way to change only "Media" page priority without having to list ...
Spiro's user avatar
  • 59
3 votes
1 answer
4k views

Add menu page on multisite

I'm trying add menu page in multisite (settings will be global for all blogs). Current code created in plugin and activated in network function wpdocs_register_my_custom_menu_page() { ...
Nefro's user avatar
  • 648
0 votes
2 answers
2k views

Disable Auto-Expanding Menu in Wordpress Admin Menus

Right now, when I click on a menu item in the wordpress admin menu, the section that that page belongs to is automatically expanded. For instance, if I click on a link in the Settings section then ...
Moshe's user avatar
  • 225
11 votes
2 answers
13k views

How to Add a Third Level Sub Menu to the Wordpress Admin Menu

Is there a function, action or filter that I can use to add a third level drop-down menu to the WordPress admin menu. For instance, right now in the sidebar menu, there is a menu for posts and under ...
Moshe's user avatar
  • 225
1 vote
1 answer
8k views

500 internal server error on wp-admin only

I am getting a 500 internal server error when I try to log into www.mysite.com/wp-admin/ and www.mysite.com/wp-login.php. The actual site is up and running just fine so it cannot be a database error....
kingcobra1986's user avatar
0 votes
2 answers
86 views

Output the admin menu_position for each item

Is there a function I can use which will temporarily output the menu_position of every item in the admin menu? While trying to reorganise the admin menu, the single largest thing slowing me down is ...
PUncle's user avatar
  • 75
2 votes
2 answers
1k views

how to only add a top-level admin menu without it creating a sub-level-menu

Here is a the code snippet: add_action( 'admin_menu', 'travel_site' ); function travel_site(){ add_menu_page( 'Travel Site Menu', 'Travel Site', 'manage_options', 'travel-site-menu', '...
dave's user avatar
  • 133
2 votes
2 answers
663 views

How do I remove the entire left nav bar in admin for certain level users?

I know how to remove items from the left nav bar (hook into admin_menu and do global $menu; unset( $menu[ __( "Posts" ) ] ); for example). But it still shows a left nav bar (with nothing on it). I ...
Don Rhummy's user avatar
1 vote
1 answer
817 views

How to send little data between admin pages of my plugin?

I have a plugin that creates two pages in admin menu: /wp-admin/admin.php?page=list-records /wp-admin/admin.php?page=add-edit-record I'm regularly using add-edit-record to to create some sort of ...
Artaban's user avatar
  • 13
0 votes
0 answers
1k 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 ...
andreiudeiu's user avatar
0 votes
1 answer
4k 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 ...
Christoffer Hansen's user avatar
0 votes
0 answers
165 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.
andreiudeiu's user avatar
4 votes
5 answers
6k 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? ...
Fredrik's user avatar
  • 183
1 vote
1 answer
274 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?
aghezzi's user avatar
  • 111
0 votes
2 answers
788 views

Wordpress Admin Menu defining function is seperate file

Here is my current code, aio_menu.php <?php defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); add_action( 'admin_menu', 'AIO_menu_creator' ); function AIO_menu_creator() { ...
kks21199's user avatar
  • 119
0 votes
1 answer
125 views

Dropdown taxonomy lists in admin menu

I've added 4 taxonomy list to my wordpress backend: BH Job Experience BH Job Types BH Job Regions BH Job Tags These taxonomy lists are added under Job Listings like this: Now I would like to have ...
nielsv's user avatar
  • 173
4 votes
1 answer
807 views

How to show custom menu items in the WordPress android app?

I hope this is the right .SE site for this question. When on the road I want to use the Android WordPress app to write short snippets of articles for later use. My blog has some custom article ...
Trollwut's user avatar
1 vote
1 answer
2k 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 ...
inno.vlad's user avatar
0 votes
2 answers
2k 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. ...
dellboy's user avatar
1 vote
3 answers
4k 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 ...
Jian's user avatar
  • 11
0 votes
2 answers
38 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', '...
Undistraction's user avatar
2 votes
2 answers
13k 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 "...
codeview's user avatar
  • 455
0 votes
1 answer
66 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?
Ari's user avatar
  • 1,187
0 votes
2 answers
4k 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 ...
Karim's user avatar
  • 50