Questions tagged [wp-admin]

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

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

Change label of title field for posts in the backend

I am trying to add some HTML to the title label in the backend of WordPress. Attempt 1: I am using the following (simplified) function: function change_post_titles() { global $post, $title, $...
5
votes
0answers
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 ...
4
votes
1answer
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/...
4
votes
1answer
735 views

Wordpress admin notice in plugin function

i have sample wordpress plugin class. Im hooking woocommerce woocommerce_saved_order_items and i want create a admin notice. Add action from __construct works, but when i want create a notice in hook ...
4
votes
1answer
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 ...
3
votes
1answer
1k 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' ); ...
3
votes
0answers
51 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 ) ); ...
3
votes
0answers
449 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-...
3
votes
0answers
236 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 ...
3
votes
2answers
5k views

Plugin: How to make links in admin page open up inside of the admin panel

In writing my plugin, I have added my menus and submenus to the admin page. The pages load and function as intended. What I am trying to do is create some links inside of these pages that will pass ...
2
votes
2answers
46 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 ...
2
votes
0answers
299 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 ...
2
votes
0answers
253 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 }...
2
votes
0answers
235 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. ...
2
votes
1answer
315 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 ...
2
votes
1answer
165 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 ...
2
votes
0answers
297 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 ...
2
votes
0answers
124 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 ...
2
votes
0answers
157 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 ...
2
votes
0answers
190 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) ...
2
votes
3answers
8k 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 ...
2
votes
0answers
490 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 ...
2
votes
0answers
129 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 ...
2
votes
1answer
172 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 ...
2
votes
0answers
67 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 ...
2
votes
1answer
377 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 ...
2
votes
1answer
531 views

Wordpress address URL keeps dropping the www

My Wordpress Address (URL) in general settings keeps losing the www from the URL - I type in http://www.domain.com and it saves and works fine. Next time I go in the address has changed to http://...
1
vote
0answers
22 views

Change search results order for Admin -> Appearance -> Menus -> Pages -> View all

I have over 200+ pages (about 100 for each of my two languages). How I can change the order of results? I need the same as on the page with Page list. On the Page list e.g. you have a parent page and ...
1
vote
0answers
16 views

WordPress notification reports

I had to make a standalone dashboard for WordPress. I designed an interface to notify users of information messages (eg wrong user password) such as verification of forms and files or errors. But I ...
1
vote
0answers
14 views

Display checked in checkbox theme admin page when reloaded

When check in checkbox, display checked. And when uncheck in checkbox, display unchecked. it is OK. But when reload this theme admin page, always unchecked. When save checked and then reload, but ...
1
vote
0answers
6 views

Created a new subdomain with same content. Should I add a redirect in my old subdomain?

I'm managing our WordPress site and we had a name change in the subdomain. Instead of changing the subdomain name, our IT created a new subdomain name and we just copied everything from the old one. ...
1
vote
1answer
20 views

Use Password Protected Form without the use of wp-login.php

I need to password protect a page, but from what I looked up -- the action of the form needs to use something like this: action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post'...
1
vote
1answer
15 views

How to change popular term checklist title when edit post?

I have a title_custom field in the article category. How can I show that field in place of the title in the category selection box when editing or adding posts? It's in the function ...
1
vote
1answer
34 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 ...
1
vote
1answer
15 views

WP admin page gives 404

I have a problem with my admin page of the site http://www.fotoexpo202.nl . I can not reach the inlog anymore of this page: Not Found The requested URL was not found on this server. Additionally, a ...
1
vote
0answers
36 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 ...
1
vote
1answer
135 views

WordPress customizer Preview not loading

I'm creating a WordPress website, today I have tried to add some new features but I'm not able to add because customizer live preview is not loading I have done some steps Update all theme and plugin ...
1
vote
0answers
13 views

Placing a custom Control element in an existing block InspectorControls panel

I would like to place my existing custom control element into the core/heading component found here. I currently have my component in the Advanced Controls panel Illustration
1
vote
2answers
18 views

redirect to a dedicated sign in page

I am creating a plugin to redirect all sign in attempts to a dedicated page rather than using the builting wordpress page so i created this hook action for the admin_init with the highest priority ...
1
vote
0answers
20 views

What should happen when a WordPress Plugin is activated across the network (Network Wide Activation)

I'm used to WordPress, but something got my attention as described below: For WordPress Network Wide Plugin Activation: wouldn't it be efficient to have an UI to allow super admins to control how the ...
1
vote
0answers
32 views

wp-admin - 404 after custom login form

I create custom login form in my page with this code: add_filter('login_redirect', 'my_login_redirect', 10, 3); function my_login_redirect($redirect_to, $requested_redirect_to, $user) { if (...
1
vote
0answers
46 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 ...
1
vote
0answers
90 views

Classic editor throws 403 error based on post content

In an updated and unadorned WordPress installation, with only the Classic Editor plugin enabled, and the 2017 theme, I get a weird error. When I try to save a draft of a post containing this <...
1
vote
1answer
30 views

How to force field validation first, then its values saved durning edit profile?

I want to make validation of image during edit profile (wp-admin). My code for validation is: add_action( 'user_profile_update_errors', 'validate_steamid_field' , 10, 3); function ...
1
vote
0answers
25 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 ); $...
1
vote
1answer
2k views

How to fix ob_end_flush() failed to send buffer of zlib output compression (1)?

the following code appears at the bottom of my admin page: ob_end_flush(): `failed to send buffer of zlib output compression (1) in /home/benemota/public_html/wp-includes/functions.php on line 2619` ...
1
vote
1answer
13 views

How to list newly ftp added HTML webpage under Pages section of wp-admin?

I uploaded a custom page (html,css, and a few scripts) through the file manager, and want the customer to have access to this page through the admin "Pages" menu in the admin area. The page is ...
1
vote
0answers
48 views

Filter term taxonomy metabox in custom post type

I have created a custom post type games and registered taxonomy game-filter. When creating game-filter I am adding "is_deleted" in term meta. Now, when creating a game, I want to display only those ...
1
vote
0answers
27 views

Wordpress admin categories sort show is wrong

I create categories like: A -- A1 -- A2 ---- A21 ---- A22 -- A3 B -- B1 -- B2 C But in new post on left side admin show wrong: A -- A1 ---- A21 ---- A22 B -- B2 C A2 A3 B1 Why? How I can fix it? ...
1
vote
0answers
31 views

Cannot access wp-admin/wp-login.php (Wordpress backend) anymore, what could be wrong?

The problem I cannot access my Wordpress backend anymore. I cannot do this by going to www.sitename.com/wp-admin and not by going to www.sitename.com/wp-login.php. When I go to /wp-admin, it seems ...

1
2 3 4 5
13