Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [wp-admin]

Tools for site administration located in the `wp-admin` directory of a WordPress site.

Filter by
Sorted by
Tagged with
1 vote
0 answers
17 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
23 views

Unable to login or reset password via wp-admin

I have a Serverpilot-managed server that has 2 apps installed on it. One of the apps is my Wordpress website that I haven't touched in a while. When I'm on the login page, I enter my username/email ...
Shrenik Raj's user avatar
0 votes
0 answers
6 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
1 vote
0 answers
23 views

Wordpress Admin login problems- PLEASE HELP [closed]

I have just taken over a clients website to carry out future maintenance and updates. I am not sure if the previous developer left on a bad note but the thought has crossed my mind. I simply cannot ...
FrontEndGuy's user avatar
1 vote
1 answer
55 views

Set Featured Image of a post

How to set Featured Image when creating post using $post_id = wp_insert_post( $args ); ?
Foysal's user avatar
  • 449
0 votes
1 answer
20 views

disable admin bar except administrator

I want to disable admin bar except administrator. I tried adding following code snippets into functions.php of my child theme. but none of them works. My WordPress version is 6.4.3. I'd appriciate for ...
Haibo Zhou's user avatar
0 votes
1 answer
8 views

Fetch Post Category

How to fetch all post categories which has posts and show in a drop down list in WordPress Admin panel ?
Foysal's user avatar
  • 449
0 votes
0 answers
11 views

when creating menu in wordpress it shows database can not be inserted

0 i am facing the same problem if anyone has any solution then please reply i am facing with long time and not able to crack this solution please help someone... i will be eagerly waiting for reply... ...
flixspot gamer's user avatar
0 votes
0 answers
8 views

WordPress Add/Edit Post right admin sidebar change title

How is it possible to change the "Tags" title on the right admin sidebar "accordion" and in the preferences of the block editor? See screenshots. I've tried changing $wp_taxonomies[...
Raf A.'s user avatar
  • 1
0 votes
0 answers
26 views

Fatal Error in my WP "Call to undefined function get_option()"

It all started when I installed the Really Simple plugin on my WordPress website and requested the SSL certificate even though I don't have HTTPS. When I realized this error, it was already too late, ...
ben's user avatar
  • 1
1 vote
0 answers
27 views

check if the admin is inside the specific page on the back end

how to check if the the admin is inside the specific page inside the admin dashboard to show him specific result or a search query where developer wanna implement the result on that particular page ...
Sahid's user avatar
  • 11
0 votes
1 answer
33 views

Secure way to add JS Script to Wordpress filesystem

EDIT: Because of the answers below i changed the title and explanation for this question. Maybe there are other people who struggle with saftey questions, like me. I am a beginner with Wordpress ...
LovinQuaQua's user avatar
0 votes
2 answers
268 views

wp-admin/admin-ajax.php 400 Bad request (chrome console)

I have a download button (to download a pdf file) on my website page, underneath it, I have the number of times that this button was clicked, it is updated in real time using Ajax-JQuery WP method, ...
Sam94's user avatar
  • 3
0 votes
0 answers
26 views

Not applying update field (acf) in my plugin

this is my plugin code <?php /* Plugin Name: Unique Auto VIN Fetcher Description: Fetches vehicle data using VIN from a specified API and fills the data in custom fields in posts. Version: 1.0 ...
Mohammad Oveissi's user avatar
1 vote
1 answer
12 views

Display box in sidebar of custom post type

I have a plugin I've written that displays ratings on various pages on my site. It's shortcode based and just drops in on any given page [mm-rating] It draws from a field provided by the WP SSO ...
commadelimited's user avatar
1 vote
1 answer
42 views

How can I have an admin only non-dashboard page in my Wordpress plugin

I am building a plugin with two pages, one will be part of the admin dashboard which is simple enough and will just allow admins to edit some data. The other page should also be only accessible for ...
Michael's user avatar
  • 11
0 votes
0 answers
17 views

How to access admin menu labels and links on front-end?

I am trying to retrieve a list of all the admin menu labels and links on the front-end so I can add them to my admin bar menu. I don't need the submenus. I was hoping to access global $menu, but it ...
Aristocles's user avatar
0 votes
1 answer
24 views

search by meta field in the regular WordPress admin panel search

I want to expand the Wordpress admin panel search using this code. function add_search_query_meta( $query ) { if ( is_admin() || ! $query->is_main_query() || ! $query->is_search ) ...
Givanni Dev's user avatar
1 vote
0 answers
16 views

Search result page admin panel - display values from the result's metaboxes

Help me please.. I have plugin for vacancy/resume/companies in the form of posts on Wordpress. The task is to perform a standard Wordpress search for arbitrary fields inside the record. The fields ...
Givanni Dev's user avatar
0 votes
1 answer
25 views

How can I catch WordPress custom settings page slug has already changed?

I created a custom settings page like below. add_menu_page( __('Management', 'domain'), __('Management', 'domain'), 'activate_plugins', 'management', // <--- ...
G.D.i's user avatar
  • 23
0 votes
1 answer
26 views

How to filter the terms of custom taxonomy by author id in admin panel

I created custom taxonomy named 'Customers'. In admin panel, different users will login and create their Customers in that taxonomy. I want to show them their own Customers only. Currently they can ...
Ravinder singh's user avatar
0 votes
0 answers
16 views

Force post update with React

I'm creating a plugin and I have added a custom settings panel in the editor sidebar. In my settings panel I have a couple of text inputs and a custom button that calls an endpoint to pass some data ...
TsvetkoKrastev's user avatar
0 votes
0 answers
8 views

Unable to change blog language in multisite

tl;dr No matter what I select in Site Language: After hitting Save this value is always reset to English (United States). Where or what should I be looking for to resolve this? I was playing a ...
trejder's user avatar
  • 322
1 vote
1 answer
100 views

How does the security of admin_ajax.php work?

I have never done any Wordpress development and have no experience at all with the technical architecture of Wordpress. I am self hosting a Wordpress instance and am investigating a recent attack on ...
cdauth's user avatar
  • 121
0 votes
0 answers
13 views

My wordpress admin backend doesnt go to links anymore

Before I even updated the site, I realized something was wrong, all the CSS was missing at wp-admin. I tried updating the wordpress corefiles with fresh installation, I tried flushing permalinks, I ...
Caroline Craig's user avatar
0 votes
0 answers
6 views

Multisite logged into one wp-admin, move to another sites wp-admin asked to login again

I have a small networks of sites setup locally, mymainsite.localhost mymainsite-variation1.localhost mymainsite-variation2.localhost I am logged into mymainsite.localhost/wp-admin and navigate to ...
sico87's user avatar
  • 209
0 votes
1 answer
18 views

Admin access to secondary site user_can_access_admin_page losing login

This issue is related to an 'alternative' setup using 2 wordpress sites but 1 users table. The initial setup is summarised below: 2 separate WP instances on same domain aaa.localtest.me + bbb....
JI-Web's user avatar
  • 101
1 vote
1 answer
30 views

Trouble with WordPress Settings API: Form Submits When Fields Called Directly, Fails When Using Callbacks

0 I'm working on a WordPress plugin and facing an issue with the Settings API. I have a settings page with two forms. The first form uses do_settings_sections() to call fields from a public function (...
user2765920's user avatar
0 votes
0 answers
22 views

Products are displayed only in the admin area

I have a code: $products_query_params = array( 'post_type' => 'product', 'product_cat' => 18, ); return new WP_Query($products_query_params); I need it to get products. But it works ...
Wembley's user avatar
0 votes
1 answer
85 views

Form submission issue in wordpress admin (custom plugin) using $_GET for searching & filtering

I have a custom plugin that was built by a developer which was working fine until last week Friday. The plugin is running on wordpress.com platform rather than a stand alone Wordpress.org CMS. An ...
user2274299's user avatar
0 votes
0 answers
17 views

My website freezes for one minute every time I publish or update a post

Every time I publish a new post or update an existing one, my website freezes for around one minute, although the post is updated shortly after I click the update button in the WordPress admin ...
Oren Harhel's user avatar
0 votes
0 answers
17 views

Fresh Install - WP6 - Sorry, you are not allowed to access this page

I was able to use the if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; commands to get around the too many redirects error. Now, I can see the site, however, ...
Anubis Blue's user avatar
0 votes
2 answers
1k views

Error 403 on wp-admin - Redirection to upgrade.php

One of my customers reported me an error on its website. we loaded a backup because it is a production site, however, since then, we no longer have access to wp-admin. The message I get when I go to /...
sorrow's user avatar
  • 3
1 vote
1 answer
31 views

Wildcard multisite wp-admin url wrongfully redirected

So, this is the situation. I have a working top level domain site (https://example.com) and I set up a wild card subdomain (*.example.com) and multisite settings in WordPress. It works as expected, as ...
Sven V's user avatar
  • 11
0 votes
1 answer
187 views

redirect wp-admin/profile.php to members/your-profile

Is there any way to redirect /wp-admin/profile.php to /members/your-profile I do not want members to go to the default wp-admin page but instead go to the custom members page. I tried a redirect via a ...
Ian's user avatar
  • 1
0 votes
1 answer
26 views

Administrator user cannot access dashboard after localwp import

This is the 2nd time this has happened in the past few weeks so I thought I would try and get some ideas on how to overcome. There are a few others in the localwp community that have had the same ...
php-b-grader's user avatar
2 votes
0 answers
81 views

How can I add classes to the Gutenberg iframe (editor-canvas) body tag? Added in WP 6.2(?)

I believe Gutenberg content was iframed in WP 6.2 if all blocks are v3. I have used a function like below to add very important custom classes to my admin body tags which in turn alters how the ...
lepardman's user avatar
  • 315
0 votes
0 answers
32 views

Update Cache on Save Instead of Clearing It?

I'm working on getting my wp-admin faster and is thinking about how I can get those slow get_posts() with a lot of meta queries faster. I have already made som progress with replacing a lof of LEFT ...
Peter Westerlund's user avatar
0 votes
1 answer
37 views

Show shipping class in admin product list

I'm looking for a way to show the Shipping Class of a product in the product admin overview to be able to quickly check if the right shipping class was selected for a product. Can you help?
Helmi's user avatar
  • 118
0 votes
1 answer
35 views

WP Admin Bar no longer appears in Dashboard

The admin bar no longer appears in the dashboard. I have looked through the child theme and there is no code related to the admin bar. The site runs Flatsome (latest theme version) + custom child ...
Alexnl's user avatar
  • 307
0 votes
0 answers
28 views

WordPress Responsive Custom Control WP Customizer

I'm developing a WordPress theme and I searched for days without finding anything. I have a custom control in WP Customizer and I want that it can save data responsive for desktop, tablet and mobile. ...
Stefano's user avatar
0 votes
2 answers
23 views

Can no longer access Admin panel

Suddenly, I cannot get into my Admin panel. When I enter the URL, it will only bring up the home page. Any suggestions? https://www.smokymountainsanytime.com/wp-admin/
J. Payne's user avatar
0 votes
0 answers
20 views

redirect logged users to custom front-end insetad of wp-admin

I have this three functions in my custom plugin. I have created a custom front-end and I'm using an SSO plugin that will get the registered data from usermeta table to pass them to magento if an user ...
ICTDEV's user avatar
  • 133
0 votes
0 answers
29 views

Unable to get the correct URL using get_the_post_thumbnail_url() in wp-admin

I've added some custom fields to a rest route. I want to retrive the post thumbnail for my CPT and I'm using this code: This is the code I'm using to add the post meta to the CPT after an image is ...
ICTDEV's user avatar
  • 133
0 votes
1 answer
92 views

Wordpress change role from administrator to author by itself (automatically)

do anybody know this kind of phenomenon? I do not have any user managing plugins installed in my WP, but after some interaction e.g. editing pages or creating postings (its not matter) WP changes for ...
RestAPPDev's user avatar
0 votes
0 answers
26 views

Display SKUs in admin order list for new HPOS

I used to have code to display column with order SKUs in admin order list page. After introducing WooCommerce HPOS I changed the hooks accordingly (because of admin list page change) but it looks like ...
Vlado's user avatar
  • 111
1 vote
1 answer
22 views

login_enqueue_scripts changes are not reflecting

I tried adding a custom CSS for my wp-login page and login forms within my website using the login_enqueue_scripts hook. My issue is that my changes don't initially reflect on the front end. But the ...
Nalin Vyas's user avatar
0 votes
0 answers
18 views

Post type gives 404 unless logged in

My custom post type gives a 404 (slug translated by WMPL), unless I login to the admin. Then it works again for several days (it seems), just to become 404 again. Login in again (without doining ...
Base's user avatar
  • 1
0 votes
1 answer
28 views

What is the best way to ignore wordpress administration using add_filter($title) also when Ajax request

Inside a custom plugin to translate Posts contents I use add_filter() and plugins_loaded() hook to replace all $title, $excerpt, $content, $postmeta. As the documentation says wp Ajax use admin_ajax....
imagIne's user avatar
  • 83
0 votes
0 answers
28 views

unable to find the document body in user-edit admin using javascript or CSS

I am pretty new to using js on wp and I have this pretty tame script that is supposed to find the element and replace it using textContent. I also am using a simple CSS element that has the same ...
Jocelyn Hunter's user avatar

1
2 3 4 5
47