All Questions
3,923 questions
0
votes
0
answers
7
views
Twenty Twenty Four child theme stylesheet is not being enqueued in admin panel when editing pages
I have created a child theme of Twenty Twenty four. I have a styles.css in the child theme directory and I have enqueued the stylesheet to load in the child theme's functions.php:
<?php
/*
* ...
0
votes
1
answer
18
views
Customize Message
I am developing a Plugin. I would like to Customize Message. When I delete any post I am getting message 1 post moved to the Trash. and when I delete a post from trash I am getting message 1 post ...
1
vote
1
answer
23
views
Change the color of one or more specific items on the Pages list (Admin)
This screenshot shows a page called OO01 - TRABALHOS HOVOS I've created to demonstrate this.
This page is listed in the All Pages section of Wordpress.
All pages there are listed with the same blue ...
0
votes
0
answers
15
views
media_sideload_image only works on localhost and without return id or src
I'm trying to use media_sideload_image like in this question:
Can't upload image using media_sideload_image
it works on localhost with add_filter('https_ssl_verify', '__return_false'); for testing ...
0
votes
0
answers
24
views
After changing http -> https -> http, I cannot access admin dashboard
After changing http -> https -> http, I cannot access admin dashboard.
Also I cannot access the server by ftp or ssh.
What should I do?
The site url is
http://biomath.khu.ac.kr
0
votes
1
answer
28
views
Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
I have two custom taxonomies on the site - Countries and Cities.
The Country taxonomy contains over 200 terms, and the Cities taxonomy contains over 47,000 terms.
Naturally, editing content with ...
0
votes
1
answer
18
views
WordPress homepage shows default theme after migration – logged-out users see different content
I migrated a website from Enom to Hostinger, installed wordpress to the website, and uploaded my backup files using Updraft.
When I am logged in as an admin, everything works just fine. But when i try ...
0
votes
1
answer
25
views
Can I get the role of the currentUser in modern WordPress React?
const { currentUser } = useSelect(
( select ) => ( {
currentUser: select("core").getCurrentUser()
} ),
[]
);
This gives me a user object, with ...
0
votes
1
answer
29
views
/wp-admin/admin-ajax.php Error 500 while using divi premade layout in existing pages
I am getting error as 500 while only using premade layout and existing pages option.
Its working fine for staging, issue is only on production.
How to check exact issue...
Tried disabling plugins.....
0
votes
1
answer
52
views
How to Customize the Admin Sidebar Menu in WordPress Multisite Network by changing the backend code of the wp-admin code files?
I'm working on customizing the admin sidebar menu specifically for the WordPress Multisite Network Admin area. I want to add a new top-level menu called "Header Builder" and some submenus ...
0
votes
1
answer
24
views
Array() displaying in all pages of admin -view page source
When we check view source page of our site, it is displaying below code in all pages :
Array
(
)
below is screenshot :
Requirement :
How to remove that Array() text ? From which file it is coming ...
0
votes
0
answers
29
views
How to add an error notice conditionally
I am trying to add an error notice to an admin screen. Like this. So. I have a the function which outputs the error:
public function my_error_notice()
{
$text = __( 'There has been an ...
0
votes
1
answer
26
views
Load specific CSS file
I am learning WordPress Plugin development. I would like to load my specific CSS file in my specific Admin Pages not in other Admin Pages.
How can I do that ?
0
votes
0
answers
20
views
The wp-admin url for each site does not work on WordPress multisite
I'm having some trouble while trying to access the admin area of each site in a WordPress multisite. I have the following settings in wp-config.php
define('WP_SITEURL','https://web.mydomain.com');
$...
0
votes
1
answer
17
views
admin showing Array() after adding exit() code
One of our developer add this code : exit() somewhere in function.php file . now when we login to wp-admin, we are seeing below message :
Array()
we renamed theme : "Hello-elementor", than ...
0
votes
1
answer
29
views
Can't retrieve custom post type taxonomy term to custom post type editor
I have 2 main problems:
I can't seem to add editor_name custom field to default/native WordPress list of request URL query parameters.
This is the request WordPress is using:
http://localhost/wp-...
-1
votes
1
answer
17
views
Is there a way to get the WP Admin Header to inject as the first element in the body instead of the last?
The default approach is to inject it at the end of the html and fix position it at the top.
That approach has worked for years but these days we have something better - position: sticky - and that ...
0
votes
2
answers
34
views
How to use native wordpress translation domain inside a custom plugin?
Inside a custom plugin with a custom post type page entirely rework, I would use wordpress native translation to translate the post statut and other wordpress default informations.
I try to use the ...
0
votes
0
answers
15
views
How to add an extra parameter to searches on the admin listing screen for my custom post type
I have defined a custom post type. On the admin listing screen I am filtering this based on a querystring argument. So if my querystring includes 'filter=abc' I show a subset of my custom posts, if ...
-1
votes
1
answer
36
views
Select a Text for CSS
I am learning WordPress Plugin Development. I have below HTML in a Admin Panel Page.
<form method="post" action="options.php">
<table class="form-table" role=...
0
votes
0
answers
41
views
Word press wp-admin redirecting to reauth=1
We've hosted word press on AWS EC2 instance, and it's attached to AWS application load balancer(Internet facing), then it's attached to AWS cloud front, our website is pointing to AWS cloud front.
...
0
votes
0
answers
24
views
Can't access backend
I have lost access to wp-admin after inputting multilingual material to a WP/LearnDash site. (message: “Sorry, you are not allowed to access this page.”)
I have tried dozens of tweaks to gain access ...
0
votes
1
answer
28
views
Wordpress admin area not sending mail (but works with WP Mail SMTP, Test Mail, and PHP mail() function)
My wordpress admin area does not seem to be able to send mails. For an example, I tried to change the admin mail address, but I never received the confirmation mail and had to use the plugin Change ...
0
votes
0
answers
23
views
Removing /wp in Permalink URL of subdomain led to inaccessibility to WP Dashboard
I am a beginner and learning to develop a website through practicing. Basically using Elementor Plugins.
When I noticed my Home/Front Page URL https://kuluguskham.cskulung.com/wp I thought the last /...
0
votes
1
answer
24
views
Admin utility classes?
I am dipping into creating a super basic dashboard widget for a theme I plan to re-use.
In order to style the interior of the dashboard widget, I was wondering if there were utility classes used in ...
0
votes
0
answers
14
views
Can't Access Wp-admin Login Page I get 500 error
When I try login into my website I get
This page isn’t working
is currently unable to handle this request.
HTTP ERROR 500
How can I resolve this?
0
votes
1
answer
52
views
Can a user submit requests to wp-admin/admin.php without logging in?
I have a site that has a malicious link being injected into it which causes every page of the site to be clickable and go to random sites. The script is being injected through the WPCode plugin which ...
0
votes
1
answer
45
views
editPost without undo entry
I am updating my post status with following snippet:
dispatch("core/editor").editPost( {
status: 'draft'
} );
My problem is, that this action creates a new undo-entry. Is it possible ...
1
vote
0
answers
32
views
Remove AM/PM in gutenberg add/edit post and use 24-h format
How can I setup 24-hour format, and still keep the english language in wordpress. (tried us, australian, uk, south africa)
See screenshot. I tried everything, found this url, but it does not tell me ...
0
votes
2
answers
55
views
Wp-admin wrongly redirecting on multisite
I have a Wordpress subdirectory multisite configured on Nginx, with Cloudflare CDN. I've set all up on Nginx and wp-config.php according to other websites I have functioning correctly with the ...
0
votes
1
answer
41
views
My custom meta box with textarea field not saved
I created a custom meta box for my custom post type with address, phone, and map but only the map field type textarea not saved.
My code here:
// Add meta box
function vn_store_add_meta_box() {
...
0
votes
0
answers
49
views
Filtering custom post type list in admin by custom meta key/value
I am trying to add an additional filter to be able to filter by a custom meta value but it is not returning any values when I would expect it to.
Here is my code to add the filter dropdown (this seems ...
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....
0
votes
0
answers
65
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 ...
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' =...
0
votes
1
answer
16
views
Custom fields empty after refreshing page
I have added some custom fields to the Gutenberg editor, the purpose is getting these custom fields loaded in the custom-post-type.
Thats is all working, I was able to get the custom-fields in the ...
1
vote
0
answers
57
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 ...
1
vote
1
answer
70
views
Set Featured Image of a post
How to set Featured Image when creating post using
$post_id = wp_insert_post( $args ); ?
0
votes
1
answer
33
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 ...
0
votes
1
answer
14
views
Fetch Post Category
How to fetch all post categories which has posts and show in a drop down list in WordPress Admin panel ?
0
votes
0
answers
14
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...
...
0
votes
0
answers
15
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[...
0
votes
0
answers
186
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, ...
0
votes
0
answers
20
views
custom post type with metabox custom fields
how to make meta custom fields in custom post type name jobs_board_cpt , I am using boilerplate ?
public function jobs_board_cpt() {
$labels = array(
'name' => ...
1
vote
1
answer
46
views
Metabox conditionals depending on post format and template in Gutenberg
In the classic editor, I used jQuery to display metaboxes depending on the current post-format or page template selected. If a user selected a different format or template, they would toggle depending ...
1
vote
0
answers
74
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 ...
0
votes
1
answer
41
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 ...
0
votes
2
answers
2k
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,
...
0
votes
0
answers
32
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
...
1
vote
1
answer
26
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 ...