Questions tagged [admin]

Users with the ability to perform administrative tasks for a site or a network of sites.

405 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
2k views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
user1117841's user avatar
3 votes
1 answer
1k views

Trying to add admin file upload form plugin

I'm trying to create an upload form from my admin page via a plugin. I've cobbled together some code from a few sources, including this one: https://www.htmlgoodies.com/beyond/cms/create-a-file-...
Jesse Aldridge's user avatar
3 votes
0 answers
2k views

Searchable meta value in user.php

I have created a new column in the user table list (admin page) and would like the column to be searchable in the search query, How do i add the meta to the search users query ? /** * Create user ...
Zoric's user avatar
  • 39
3 votes
1 answer
2k views

using slug instead of ID in admin edit post url

In Admin, is there any way to use a slug instead of a post ID# within the URL that takes you to a post's edit screen. So instead of: http://example.com/wp-admin/post.php?post=5562&action=edit ...
cvc's user avatar
  • 39
3 votes
1 answer
128 views

Adding Field to Profile "Name"

I am trying to add an extra field or two underneath the "Name" or "About" section in the Wordpress user profile. So far I have only been able to accomplish this by: //Begin add_action('...
Corey's user avatar
  • 131
2 votes
0 answers
112 views

Get user id for delete and update selected user

I'm trying to create admin form which can perform user creation, update and delete from frontend, See attached i'm trying to update user from update button but i'm little confuse how to get id for ...
Dhruv Suthar's user avatar
2 votes
0 answers
822 views

Error thrown. Cannot create references to/from string offsets

I'm trying to access the /wp-admin on my old blog post, but when I try to get to the login page I'm getting an alert that reads as follows: "Error thrown. Cannot create references to/from string ...
Alex Canelos's user avatar
2 votes
0 answers
308 views

SSL Partially breaking admin panel and elementor

I have recently installed a SSL certificate on my hosting server and I switched WordPress to SSL. The website is running normally, with no mixed content errors and everything is loading as it should. ...
dimst23's user avatar
  • 21
2 votes
2 answers
3k views

How to make the front-end RTL without changing the admin panel language?

I'm working on a website that needs to be RTL, after reading some articles online I understood that in order for the website to be RTL I need to change the site language to a RTL language. Through ...
Tony's user avatar
  • 21
2 votes
0 answers
1k views

Button inside Custom Meta Box triggering the Update Button

I have a custom meta button that adds additional custom meta fields inside the custom meta box. This meta box, in particular, gives me a choice to enter a particular skill and rate my own ...
Migs M.'s user avatar
  • 33
2 votes
0 answers
1k views

Add tab to profile.php wordpress plugin development

I already know how to add an extra field in user profile. But in my case I have A lot of field to add and It is good practice that your form is not too long. So I decided to implement tab panel in the ...
Danryl Tigol Carpio's user avatar
2 votes
0 answers
368 views

Admin Dashboard with Custom Tab for Client

I am trying to create a basic Tour Date widget. When the user clicks on the Tour Date Tab from the admin dashboard I want them to be presented with five fields. Date Venue City, State or Country ...
Polemistis D'Gnosis's user avatar
2 votes
2 answers
604 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
2 votes
0 answers
409 views

Refreshing collections in the admin media manager

I know this question is very similar to this previously asked question; however, I was wondering if there was a more up-to-date/official way to refresh content programmatically in the WordPress admin ...
doubleswirve's user avatar
2 votes
1 answer
995 views

Is it possible to hook AJAX to UPDATE-button?

I have a site with a custom post. When I enter that custom post in admin (edit)-page then a form is rendered. This form takes like about 2-3s to render - it's a lot of of values in it - both hidden ...
bestprogrammerintheworld's user avatar
2 votes
0 answers
891 views

Include admins in author drop-down on edit post screen

In the back-end when editing a post there is a dropdown to select post author which is populated by registered usernames. But, users with an admin role do not appear in the list, there is an "Admin" ...
terraling's user avatar
  • 165
2 votes
1 answer
1k views

Adding an admin menu page showing the link twice - how to solve this?

I'm newbie and I'm trying to create a plugin to add a menu to left menu in admin section. i have create the page but it is working fine. but i find the left menu being displayed twice. how can I ...
user1878508's user avatar
2 votes
1 answer
251 views

Hide upload image fields for the different media upload popups

I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
AltDan's user avatar
  • 447
2 votes
0 answers
449 views

Categories in admin interface: can they be collapsible?

I have many hierarchical categories, some of which have the same names. Can I add collapsible categories functionality in the category selection widget in the admin interface? I refer to the ...
p.a.'s user avatar
  • 581
2 votes
1 answer
1k views

WordPress Ajax callback function from plugin - OOP

Using PluginBoilerplate to write a plugin. I need to make an ajax call. I added to main plugin.php file, class to register scripts and handle ajax calls. if ( ! class_exists( 'PoorMansNameSpaceAJAX' ...
Amit Rahav's user avatar
1 vote
1 answer
54 views

How to set up a private custom post type that is accessible in the administrative dashboard?

I'm not entirely sure of the best way to approach the requirement so I'm hoping someone who has more experience with it will be able to share some gems. I've set up a custom post type with the ...
Motivated's user avatar
  • 205
1 vote
1 answer
145 views

Removing WPML Items From the WordPress Admin Bar

I'm using WPML on a website, and since I'm traducting everyting mylsef, I want to hide the "WPML Translation managment" section. I tried with : function my_remove_menu_pages() { ...
Léa Rabatel's user avatar
1 vote
0 answers
79 views

Settings API not saving values to database

Here is what I'm attempting to do: I have two fields called Client ID and Client Secret. I would like to save each individual item in the database as the following keys: instagram_client_id and ...
Sema's user avatar
  • 11
1 vote
0 answers
21 views

Admin access for custom user capabilities

I've got a site with a lot of custom user roles and capabilities, and I'm trying to allow users with a new capability 'admin_panel_access` (set up via User Role Editor) to access the admin dashboard. ...
PenguinBegins's user avatar
1 vote
0 answers
492 views

wp-login behind nginx reverse-proxy inaccessible — bad redirect?

i’ve setup WordPress on a local nginx backend instance. the backend url is https://wp.example.com:12345/ it’s served through a frontend, nginx reverse proxy, exposed at a subdir. the frontend url is ...
huna's user avatar
  • 11
1 vote
0 answers
92 views

On update or create post redirect to current post position in list

Is there a way to redirect the user to the current location in the list of the post he has updated? We have a CPT with more than 200 items and there are editors who need to review all items after a ...
Wouter's user avatar
  • 11
1 vote
0 answers
192 views

Four columns in the wp_users table

I am writing custom code to allow users of my site delete their own accounts from the front-end (i.e., they do not have to logon to the WordPress admin area to perform certain actions, but rather I ...
Greeso's user avatar
  • 2,116
1 vote
0 answers
191 views

Filter Categories in meta box for CPTs

Working with a custom post type in Wordpress, I would like to use the categories. So I added the categories to the cpt. No problems here. But, when adding or editing cpt items, I would like to filter ...
redcenter's user avatar
  • 111
1 vote
1 answer
247 views

WordPress Multisite dashboards redirect to homepage

I hope you can help me. I've got a WordPress Multisite install, and have a few subsides. For the main site, when I try to open the dashboard, it opens fine. But for all subsides, when I try to open ...
Mike's user avatar
  • 11
1 vote
0 answers
63 views

How to make custom column Admin>Users sortable?

I have a few hundred users (customers) to delete, specifically those that registered before 2019 and have zero orders. I've added the following code to my child theme functions file in order to add a ...
Cleopatra's user avatar
1 vote
0 answers
58 views

Sort custom meta column by other meta value

I have a post type named "event" and I store two meta values for these posts: _start_time and _start_time_unix. The first one contains a string representation of a date and the other one a ...
wwdes's user avatar
  • 11
1 vote
0 answers
281 views

Missing 'Page Attributes' in page edit

Im missing Page Attributes from page edit screen. I have searched and not found any solution. Anybody with some ideas?
Morgan's user avatar
  • 11
1 vote
1 answer
550 views

How to get custom page template being edited in gutenberg editor

I want to know custom page template name (the one chosen in page attributes - template) in PHP, before page opens in order to enqueue additional scripts according to chosen template. I know how to get ...
Lovor's user avatar
  • 881
1 vote
0 answers
22 views

Custom Fields box in the post editor: Replace textareas with input elements

I am developing a theme for a specicific use case which uses custom fields. To emphasize that the values are always single line, I would like to replace the textareas with input fields. What is a good ...
no_gravity's user avatar
1 vote
1 answer
18 views

Displaying different in-page content to cliente/admin

i'm a young informatic engineer student who is developing his first wordpress website. It is a booking website when a client can see the available hours in certain local and book it, and the local can ...
javier romero's user avatar
1 vote
0 answers
112 views

Force Contributors to add Tags via edit-tags.php

I need to be able to stop contributors to the website from adding new Tags when they create or edit a Post in WP. The reason is that I need them to enter an additional field at the same time which I ...
kubo's user avatar
  • 11
1 vote
0 answers
25 views

Can't access dashboard as administrator, login as any other level works though

Logging in as admin gets message 'you are not allowed to access this page' logging in as anything else works as normal. Have tried all the usual fixes, disabled plugins/themes restored backup etc no ...
Matt's user avatar
  • 11
1 vote
0 answers
20 views

Admin accounts unable to see plugins from external IP

I have a bit of a strange issue here, please let me know if I explain this badly. So I have created a new admin account ,for a remote developer, that has all the same permissions that I do. When I ...
Lewis Clarke's user avatar
1 vote
0 answers
30 views

Are there mutiple ways to get usernames (as a hacker)

I built a new site and forgot to protect against the "?author=n" technique. I had 2fa on all accounts so no hacker got access to the site's admin. I've since fixed that security issue. Is there ...
Rick9004's user avatar
1 vote
1 answer
87 views

Change the Labels of Users to Customers in Admin

Ok, I've been searching for over an hour for something I thought (and still think) is pretty simple. I need to change the title Users to Customers in the admin for a client. I can and have easily ...
K_C's user avatar
  • 111
1 vote
0 answers
34 views

Limit entries number on network/sites.php

in order to limit the memory usage of my page, I need to limit the entries number on the page sites.php (for network management) I tried to a filter with $pagenow == sites.php but that didnt work. I ...
Nicolas Mortelette's user avatar
1 vote
0 answers
177 views

How to display a WordPress notice on create_term action

I am hijacking create_term to do stuff when a new term is created... // Fire the function when new term is created add_action( 'create_term', 'process_term', 11, 3 ); function process_term($term_id, ...
Robert Andrews's user avatar
1 vote
1 answer
111 views

How to allow an editor to edit all WordPress blog posts but have the last say as administrator?

I run a simple WordPress setup hosted on SiteGround with no staging area and no special roles. The blog grew so much over the last few years that I barely write any content anymore. I send a content ...
Lazhar's user avatar
  • 183
1 vote
0 answers
2k views

How to be able to edit custom address fields in WooCommerce admin?

I'm Dutch and in The Netherlands we use a different address format than in the US. We'd have to spit the street name and the house number. In order to fix that I used "address line 1" for 'Street name'...
T94's user avatar
  • 21
1 vote
0 answers
31 views

Options page - dropdown of users

I want to create an options page in WPAdmin that will let me select among registered post type "Members" and anoint them as "captains". Here is my code so far but the dropdown is not functioning ...
user1902789's user avatar
1 vote
0 answers
95 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
1 vote
1 answer
51 views

Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically

For internal purpose, I'm looking for to convert (-) and (escape) sign to (_) automatically when we upload a file (photo,video,audio) on WordPress media library. Example: If i try to upload this 2 ...
Samuel's user avatar
  • 334
1 vote
0 answers
9 views

Admin - Handle data before creating or updating a post, page or custom post

I need to make some checks of the aggregated data in a page form, a post and a custom post, before these are created or updated, "if it is possible to do it with specific taxonomy", and if the user's ...
Learning and sharing's user avatar
1 vote
0 answers
115 views

Can't locate a hidden private page

I have 9 published page, and 1 private (invisible) page, in total 10 pages. However, my wordpress says that there are (2) private page, and total of (11) pages. How can I locate the unseen page?? FYI,...
NESIAC's user avatar
  • 19
1 vote
0 answers
42 views

WordPress ACL (folder + permissions)

For certificate a web platform created with WordPress, they ask me to provide a snapshot of ACL maintained on application / configuration folder. Screenshot must clearly show who all have access to ...
Samuel's user avatar
  • 334

1
2 3 4 5
9