Questions tagged [wp-admin]

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

708 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
2k views

How to allow users login to WP from external domain and make REST requests

Basically what i want to do is: Use Wordpress as a login system and data storage for web-application on another domain. Make users able to register and perform REST calls from the application. Let ...
Dariusz Sikorski's user avatar
4 votes
1 answer
5k views

AJAX handler throws 400 (Bad request) - why?

I am trying to apply a "Load more posts" function to a post loop, but I am dealing with a 400 Bad request, when admin-ajax.php is referred to. The reference I used is this - https://rudrastyh.com/...
Dougless's user avatar
4 votes
0 answers
720 views

wp-admin remove the subfolder URL

I have a problem with WP. I have a website with this URL: http://sub.domain.com/subfolder My Website works fine, but when I connect on wp-admin, the subfolder URL disappeared (http://sub.domain.com/wp-...
Kevin Py's user avatar
  • 141
3 votes
1 answer
2k views

Too many datadabse connections - upper ceiling mysql

We run a high traffic blog with around 500 real-time users and 10000 posts. We are hosted by self on VPS - 16gb, 4 core with separate mysql DB server - 4gb, 2 core; both SSD. No problem with hosting ...
edtamil's user avatar
  • 31
3 votes
1 answer
2k views

How to Use JSON With AJAX?

I've defined a PHP callback function to handle the communication between server-side and client-side: function json_render_modal_body() { check_ajax_referer( THEME_PREFIX . '-modals', 'nonce' ); ...
Michael Ecklund's user avatar
3 votes
0 answers
64 views

Render Selected Categories in Admin Edit Post Screen differently

Selected Categories for a post in the admin screen are rendered by: // Put checked cats on top $output .= call_user_func_array( array( $walker, 'walk' ), array( $checked_categories, 0, $args ) ); ...
edelwater's user avatar
  • 2,574
3 votes
1 answer
334 views

Image editing: "Edit Original" and "Replace" buttons missing on old posts

I have a site I've recently migrated to a new server. Everything is mostly looking okay, except on existing posts: when we go back to edit a post, and edit media attachments within it, the "Edit ...
dilettante's user avatar
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
2 votes
0 answers
75 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
  • 303
2 votes
0 answers
121 views

How to show always the top bar when editing

While viewing a page, or editing a theme, the topbar disappears and I can't find a way to make it always visible. Is there a way to always show it?
Jess-e's user avatar
  • 121
2 votes
1 answer
196 views

How do I display and edit other posts within the 'Edit Post' area of Wp-Admin Dashboard

I'm wondering how to edit the 'New Post/Edit Post' area of Wordpress. I want to create a new 'Screen Element' like the plugins do. I want this area to display all posts with a corresponding taxonomy ...
DJZEEGLER's user avatar
  • 119
2 votes
0 answers
98 views

Prevent posts from being published if the 'Uncategorized'-category or no category is selected

I do not want a user to be able to publish a post if no category is selected. This exact solution from a similar question is exactly what i want to do: jQuery(document).ready(function ($) { // ...
Joachim's user avatar
  • 21
2 votes
0 answers
107 views

Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?

All of my sites were recently hacked and I had to restrict access to the WordPress admin. The logs are now full of denied connections, but I also see errors coming from the IP of the server that ...
cap340's user avatar
  • 123
2 votes
2 answers
585 views

After login get "403 Forbidden"

I have set up WordPress on my computer, installed in /var/www/localhost/htdocs and eventually got the admin page and entered a username and a password. This is my wp-config.php (I have taken out the ...
Chris's user avatar
  • 21
2 votes
1 answer
665 views

Custom roles can't access to wp-admin

i'm trying to create a custom role, very similar to admin but without the capabilities to edit/delete plugins. Since i don't wont to use plugin for that i've edited the functions.php file adding ...
Jack's user avatar
  • 21
2 votes
0 answers
98 views

Opening specific posts on WP takes lot of time and freezes the editor

I have this weird problem in the last couple of days where it takes ~5 minutes to completely open some posts on WordPress wp-admin dashboard. Please hear me out carefully. This is happening only with ...
Yash Wate's user avatar
2 votes
0 answers
999 views

How to display a Ninja Form on the Wordpress admin pages

I am creating a Wordpress website where I would like to display a specific form on an admin page which has the ability to store form submissions. I have chosen Ninja forms, but I am open to other ...
iamonstage's user avatar
2 votes
0 answers
3k views

Call to undefined function wp() in wp-blog-header.php

I am getting this error: Fatal error: Uncaught Error: Call to undefined function wp() in /home/pgcimykfka2h/public_html/apni-rasoi.com/wp-blog-header.php:16 Stack trace: #0 /home/pgcimykfka2h/...
KamalKishore's user avatar
2 votes
0 answers
98 views

Custom roles showing HTML entities in title form field

I've created a few custom roles. I'm noticing that when editing a post in the Admin Area, any characters with HTML entities in the title form field are showing the HTML entity code, but only for users ...
Mattimator's user avatar
2 votes
0 answers
180 views

Wordpress if (is_page) translation on certain page

Hy there i have the following code for custom translations there are missing. function translate_text( $translated ) { $translated = str_ireplace( 'All Ratings', 'Alle Bewertug', $translated ); $...
Reto Schneebeli's user avatar
2 votes
0 answers
860 views

Block editor: How to check if block editor has initialized and populated the data store?

Within some JavaScript I have to get the current post content of Gutenberg. I am accessing this from jQuery (might be bad practice, however): $(document).ready(function() { const { select }...
Blackbam's user avatar
  • 535
2 votes
0 answers
318 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
1 answer
426 views

What corrections does this code need?

I have a function which adds an extra item (and sub-menu items) to the admin bar. It shows a debug error of... Notice: WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. ...
glvr's user avatar
  • 881
2 votes
1 answer
204 views

password protected post policy

I'm looking for a way to add policy about POST password. Password specifications : 12 characters in length, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character. Is ...
Samuel's user avatar
  • 344
2 votes
2 answers
4k 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
397 views

Custom taxonomy sort by term meta in admin columns

I want sorting custom taxonomy admin table with terms by terms meta. This meta is sort index of terms. But I dont know how can do it. I use add_filter('manage_edit-{}_sortable_columns') but sorting ...
Alexufo's user avatar
  • 171
2 votes
0 answers
134 views

CDN + WP Admin Query - .htaccess redirection

Say I have a website at https://www.example.com and I am using a CDN. Now if I want the CDN URL to be https://www.example.com/assets/... and not https://assets.example.com, then what should I do? Is ...
WPgeek's user avatar
  • 21
2 votes
1 answer
2k views

Linking table cells to network folders

Is it possible to create links to a network folder from within a table? A colleague and myself have been struggling to link certain table cells to a network folder, for example: DB - Database would ...
SP-Brown's user avatar
2 votes
0 answers
164 views

Users Unable to Access Dashboard/Posts/Pages

I'm trying to set user roles in order for my users to access the wp-admin Dashboard section and post. I was able to create roles and give multiple users Shop Manager/ Editor roles. But when they login ...
gshustle's user avatar
2 votes
2 answers
8k views

manage_edit-{post_type}_sortable_columns sorts, but wrong!

Good afternoon! This is an issue regarding the Wordpress backend and custom post types. I have spent all Friday searching and trying possible solutions and, while they helped others, in my case they'...
lastria's user avatar
  • 43
2 votes
0 answers
198 views

From 403 error to 500 internal server error

I'm trying to install wordpress on a shared hosting (1and1), it's been 3 days i'm struggling and i give up, i've installed wordpress many times on other servers with no problem, first time on (1and1) ...
أسامة الزاهد's user avatar
2 votes
0 answers
507 views

Admin wp_ajax hook returning 0

I've done some research but I can't seem to find the correct answer so I'm hoping someone can give me a hand. I'm attempting to use the wp_ajax hook in the admin section. The functionality should be ...
user3306212's user avatar
2 votes
0 answers
154 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
Austin Biggs's user avatar
2 votes
1 answer
176 views

WP-Admin edit.php & post.php slowdown after import of 10k users

Situation: Clean wordpress install No plugins VPS server 5.2ghz / 4gb RAM (Default Directadmin) Import of 10k users Problem: WP-Admin edit.php and post.php take >4sec to load. A custom post type ...
MeProtozoan's user avatar
2 votes
0 answers
72 views

Why is there an intermediate redirect to https://public-url.org/wp-admin?

I have the SITE_DOMAIN set as foo.example.com, this has a SSL for *.example.com http://example.org, is the url for the frontpage, this works. There is no certificate for example.org. Now, when I ...
berkes's user avatar
  • 121
2 votes
1 answer
401 views

Why does the My Site dropdown show only a single domain?

I ran a Network Update today from Network -> Update Network, and since then all the sites, and all the links to sites within my Admin area reference the same domain. The domain it uses is relative to ...
Dan Cristo's user avatar
2 votes
4 answers
16k views

wp-admin 302 redirects

I have a new install of WordPress on my Mac mini server. The site uses SSL and has a valid up to date certificate from StartCom. The site loads, but with no CSS or theme. Mainly, I can't get into ...
Dennis's user avatar
  • 21
1 vote
0 answers
22 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
1 vote
1 answer
11 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
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
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
1 vote
1 answer
42 views

The sidebar in wp-admin dashboard disappears when viewed on mobile screens in WordPress

I have created a user role called "Customers" through the "Ultimate Member" plugin which has access to only the "Pages", and "Profile" sections in the wp-admin ...
Programming Geek's user avatar
1 vote
2 answers
83 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
53 views

Display Custom Text if date_picker date is expired

I am having a really hard time with these 2 small issues, I hope you will help me with some code. I am using Advanced custom fields pro wordpress plugin. I have a date picker field name "...
Babar Ali's user avatar
1 vote
0 answers
798 views

is exposed wp-admin site a serious security vulnerability

this is a basic question that i was unable to wrap my head around via chat gpt or google, namely is it a serious security vulnerability for a wordpress site to have publicly available wp-admin (login ...
pawelek69420's user avatar
1 vote
1 answer
996 views

PHP FATAL ERROR

My website has a PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/vhosts/katalytes.com/httpdocs/wp-includes/script-loader.php on line 706 ...
Maria k.'s user avatar
1 vote
0 answers
65 views

How to create a User Role and give permission to only use Web Stories plugin?

I want to create a new user role "Story Maker" with only the "Google Web Stories" plugin shown in the dashboard for the user to create and publish stories. I don't want the user to ...
Frankie's user avatar
  • 11
1 vote
0 answers
98 views

Change default URL (or permalinks) in the back-end

Assume I have the following code add_menu_page('My Title', 'My Title', 'publish_posts', 'my-slug', function () { require_once ('path/to/render/page.php'); }); This code will add a menu item to ...
Greeso's user avatar
  • 2,166
1 vote
0 answers
131 views

Custom order of CPT posts by title, in wp-admin area by default

Its tough to know/determine/see if a plugin is ever overriding or will override my ability to use $query->set('orderby', 'title') when I am attempting to sort my admin posts by title, for my ...
klewis's user avatar
  • 857
1 vote
1 answer
181 views

LinkControl not showing suggestions when used on admin page

My goal is simple, I'd like to use the LinkControl element on an admin page rendered by my plugin. Using the LinkControl on the BlockEditor page is quite easy the issue is doing it without being ...
out_sid3r's user avatar
  • 141

1
2 3 4 5
15