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
2 answers
8k views

Unable to log in to localhost wp-admin page on XAMPP server

I am a newbie who recently start working on XAMPP and I am unable to access wp-admin on XAMPP server localhost. While installing WordPress, it asked me for user name and password too but when I am ...
2 votes
5 answers
7k views

Edit image preview is not displayed

When I click on "Edit" for an image I see the editor and I see the thumbnails on the right, WordPress just won't show me the actual image in the main area. /wp-admin/admin-ajax.php?action=imgedit-...
1 vote
6 answers
15k views

wp-admin url doesn't allow to login and redirects to same page

I am using Wordpress 3.6, the latest version. When I access login page for admin URL like www.example.com/wp-admin and I enter the username and password, Wordpress redirects me to the same page. But ...
1 vote
0 answers
18 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 ...
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. ...
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 ...
1 vote
2 answers
704 views

Custom Menu Broken WP 3.8.1 Update

Custom menu has stopped working since upgrading to 3.8.1. When trying to add items from the left they do not show up as movable items as they should do under Menu 1, however the text changes to: "Drag ...
0 votes
1 answer
1k views

Conditions for admin get_current_screen action parent_file edit.php?post_type=page

I have a plugin that requires scripts to load for an admin panel in the page-attributes template drop-down on page post type. However this script causes a Uncaught TypeError: on post post types ...
0 votes
2 answers
919 views

Adding custom classes to elements via the WYSIWYG

I'd like to give my client the ability to add custom classes to elements via the WYSIWYG editor. For example, giving a link anchor tag a cta class so they can specify this link should be a call to ...
0 votes
1 answer
1k views

Custom Meta Box (SELECT) Not Saving

I am trying to create a meta box with select options for each page with home-page-template.php assigned to it. I have got that functionality working correctly. I also want it above the editor, below ...
0 votes
1 answer
1k views

Same header/footer in Admin, across all network sites in multisite

I was kicking around a few ideas to accomplish this and came up with something a little strange...but it works. I'm creating a theme for Admin, for my multisite network. The users will be exposed to ...
0 votes
1 answer
2k views

Default Wordpress WP Editor removing style tags and html tag

I am working inside the WP Admin area and there is a textarea that is using the default WP Editor, not TinyMCE. The WP Editor is removing the <style> tag and also other HTML tags. I am calling ...
0 votes
1 answer
1k views

Remove Theme menu link from Admin Panel

I am trying to remove menu from the admin panel my code works as it removes some pages but i can't remove the following. admin.php?page=ot-theme-options admin.php?page=ot-settings admin.php?page=...
0 votes
1 answer
766 views

How to I change the value of a custom field on the home page?

I'm new to WordPress and have inherited a site that uses Custom Fields. In header.php there is; <?php if(is_front_page()) : ?> <div class="row"> <div class="col-md-4 header-...
1 vote
1 answer
52 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
18 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
2 answers
973 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 /...
0 votes
1 answer
910 views

WordPress Dashboard add user password not working, etc

I need help with my WordPress Dashboard. I think this happened when my site crashed and was forced to disable the plugins by renaming the plugins folder. I am unable to toggle the "Add User Show ...
0 votes
1 answer
7 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
1 answer
1k views

Get value of submit button in custom post type

I'm trying to make a quiz plugin. Using a custom post type, I've made a meta box, that has the following form table in it. <table class="form-table"> <tbody> <...
0 votes
2 answers
777 views

Insert Modal on user first login

Attempting to create a Welcome Modal for first time users on initial login to my Multisite network. I'm using code from this tutorial https://wp-mix.com/wordpress-first-user-login/ I can see the User ...
0 votes
0 answers
10 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
2 answers
28 views

WP dashboard messed up

It seems like CSS issue, but it is not persistent, sometimes works, sometimes not, however the site itself is working just fine, but I hardly can use the dashboard. This is not a duplicate, because ...
7 votes
2 answers
4k 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, $...
0 votes
1 answer
3k views

Register a new user on wooCommerce using Rest API

So, I am building a website in react using Wordpress headless server with WooCommerce plugin. I have found that to create a new customer, you have to use the WooCommerce API: https://woocommerce....
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[...
0 votes
1 answer
3k views

Allow direct access to files/folders within Wordpress to replace wp-admin

Here is the scenario: I would like to design a brand new wordpress admin for my clients (using WordPress autoload as the core to interact with WordPress). I have tried slightly modifying the css or ...
0 votes
0 answers
14 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
1 answer
795 views

Https Website: CSS and JS files load in http and admin page does not load too

After enabling SSL the website loads in HTML. CSS and JS files load only in HTTP(view source) and the admin page does not load either. Tried implementing all solutions like rewrite condition to force ...
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 ...
0 votes
2 answers
2k views

Hook into backbone to add js to wp-admin -> media library?

I've enqueued a .js file on the "Media Library" page (upload.php). I need to hide and manipulate a few of the thumbnails on the page using JS only ( I'm not looking for workarounds ). The elements ...
0 votes
2 answers
4k views

Menus not visible in Appearance after being registered

The menus have been registered in functions.php, but they don't appear within the Appearance > Menus section in Admin and the pages, posts etc options are greyed out. The menus are saved, as you can ...
0 votes
2 answers
2k views

admin-post.php results on white screen after form submission

This is a strange error because it wasn't happening earlier, it was actually all working fine. I have removed all the code I have added since I last tested it and it was working before it broke. I ...
1 vote
1 answer
817 views

wp_filesystem put_contents issue with owner/group

I am using put_contents() function to put images on the server, works fine on localhost, though on server, the user group when the file are downloaded to server is "nginx nobody" and that is causing ...
2 votes
3 answers
42k views

Why I can't change the permalink of this page?

I have the following problem with a permalink: if I open this page (it is implemented as a static page) on my local website: localhost/wordpressAsper/archivio it automatically change it into http://...
9 votes
12 answers
16k views

Unable to login to my wordpress site. reauth=1 redirection loop

There was a similar post to this, however the solution did not work for me. I am having some difficulty logging into my WordPress site. When I attempt to visit example.com/wp-admin, I see the login ...
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 ...
0 votes
1 answer
31 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
1 answer
895 views

How to separate sub-menu output and keep associated with parent

I am creating a menu like this https://squareup.com/ I have the html,css, and jquery ready. Now, I am trying to: Create the menu items with it's sub-menu items via wp-admin -> appearance -> ...
0 votes
2 answers
68 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
4 answers
16k views

CSS not showing up in my website Only HTML Displaying

I am very new to wordpress. I installed it on my linux server lately and uploaded a them on it. Everything looks good on my browser however if I try to access the website outside my network I am only ...
20 votes
1 answer
30k views

Setting $_SERVER['HTTPS']='on' prevents access to wp-admin

First off my server is sitting behind a load balancer. My SSL certificate sits on the load balancer and handles HTTPS. The data coming in on port 443 is forwarded to the Wordpress server using HTTP ...
0 votes
1 answer
2k views

Wordpress Admin Page Redirecting to Subdomain

My Wordpress website admin page http://example.com/wp-admin keeps redirecting me to the subdomain I created when adding the site to my CPanel. I have to use wp-login.php when accessing the Wordpress ...
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 ...
0 votes
0 answers
25 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 ...
0 votes
2 answers
1k views

Redirect old Posts URL to new URL

This may have a simple answer I'm not aware of, but I'm not familiar with redirects on Wordpress. Here's my question: I had my default Posts routed to mysite.com/post-name. I want to now route the ...
1 vote
1 answer
823 views

Password field is empty when using wp_signon();

I'm trying to make a custom login action for my custom login page. Registration page with custom user meta works fine, but the problem with login page is that everything should work, but it doesn't ...
1 vote
1 answer
39 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 ...
0 votes
0 answers
14 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 ...
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'...

1
2 3 4 5
47