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

learn more… | top users | synonyms

1
vote
1answer
36 views

How Restrict access to admin dashboard by specific static ip?

i'm trying to restrict access to admin dashboard (wp-admin.php) by specific static ip so tried to add .htaccess to the wp-admin and set <FilesMatch "admin\.php$"> Order deny,allow Deny from ...
1
vote
1answer
94 views

Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]

I have registered a custom Post Type via register_post_type(), and about 45 Custom Fields via add_meta_box() function, within the theme. Custom Post Type Args: 'labels' => $labels,...
0
votes
0answers
18 views

Site admin that can see everything, but not save

Maybe it's strange question, but I'm interested in it; Is there any way to allow user display everything, that Admin can see (site options, custom types, plugins settings) but disallow to edit ...
0
votes
3answers
111 views

jQuery datepicker not showing on admin menu

Nothing happens when I select the datepicker field. This is the code for the field: <input id="sticky_date" name="sticky_date" class="datepicker hasDatepicker" type="text"> The javascript ...
0
votes
0answers
15 views

Unique user tables between three sites with same database

I have three websites that have their own prefixes, but are in the same database and have each member, and I have create a system that would allow to confine all its members in a mime table, so to ...
0
votes
0answers
22 views

WordPress removing query strings

I run custom scripts and plugins with GET parameters/query strings. Recently, when I try to access a page with query strings, something happens and the query string gets dropped. This, however only ...
0
votes
0answers
21 views

Edit is changing my custom's post type parent id

I'm having a custom post type (vehicle) and i attached a gallery (post) with image attachments in it. Through my custom frontend form, I set all the post and postmeta details right, as i want to, so ...
0
votes
0answers
49 views

Wordpress Admin custom error notice

I followed some advice around here in order to display custom error notices after clicking the update button in the admin area (here it is related to a custom post type, i don't know if it's relevant)....
0
votes
1answer
60 views

Undeletable posts, users or other content

Recently I tried to move a WordPress instance to a production server and (besides other issues) had to deal with a page that could not be deleted via the admin panel. The success message would show up ...
1
vote
1answer
46 views

How to remove menu installed in wp-admin by a theme? [closed]

I installed Placester theme.And then disabled it, and deleted it. But there is still a menu there. How can I remove it? The only installed plugins are: Akismet Contact Form 7 Google Analytics by ...
0
votes
1answer
142 views

Checkbox not showing as checked on UserProfile (even with checked=“checked”)

I have a dynamic list of checkboxes that are showing on a user profile in the admin area (user-edit.php). A user should be able to select the checkboxes which will save their selections as an array ...
1
vote
0answers
107 views

inserting a post from an extern php file but post content doesn't show on wp site

I'm doing a php file that insert post's on my wordpress site. I'm filling all the fields in wp_posts, but the content doesn't shows on my wordpress site. I wonder if it's because the categories are ...
0
votes
0answers
127 views

Let user delete comment on front end only

I have a edit comments page on my sites front end and have placed a delete comment link for users. The link works however it takes the user to the backend to confirm the comment deletion. I cant have ...
1
vote
2answers
103 views

Limit access to wp_admin

I'm attempting to limit access to wp_admin by IP address but I still have a few that are getting through. I have an htaccess file in my wp_admin folder with the following: # Block access to wp-admin. ...
0
votes
0answers
53 views

Wordpress wp-admin redirect_to points to URL with folder name

I am having problem with wp-admin where the redirect_to variable holds my wp-admin URL with the folder name included in the URL. When I remove it, the redirect works good. The problem occurs when I ...
0
votes
0answers
89 views

Wordpress admin panel pages search not working?

wordpress admin panel pages search not working. Any idea about this? when i search for the specific page that exists in the list but wordpress search gives no results in the search.
0
votes
1answer
35 views

How to enable comments meta box for other author posts?

I am working with a ticket system. which is a custom post type I created as ticket. And allowed to submit tickets in the front of my site. The registered users can post a new ticket, which Can be ...
0
votes
1answer
24 views

What do I need for testing a single script in admin

I like to test a single script in the wp-admin area. Do not know what to include at the top of my script.php file for testing including all kind if DB access + Wordpress like $wpdb->get_results, $...
1
vote
0answers
65 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 ...
0
votes
1answer
57 views

Wordpress error on my website

Hey guys I launched a recently built website for my client and everything seemed to be working fine, but recently whenever I try to edit anything, add a new page, delete something, etc. I get a fatal ...
0
votes
1answer
253 views

Making changes to woocommerce order before save

I use the hook woocommerce_before_calculate_totals to intercept and make changes to the cart before data is saved. Is there a hook or other way to do the same in the admin area? I need to evaluate the ...
0
votes
2answers
44 views

Applying jquery to WordPress admin edit.php

We use the latest versions of WordPress with the Woocommerce plugin. I'm searching for the best way to apply jquery to custom post types such as WC. I have a lot of hooks already for Woocommerce, so ...
0
votes
0answers
31 views

Getting admin style sheets for custom ajax response page with thickbox

I'm trying to use thickbox to bring up a small option in the WordPress users page for adding credit to a user. This all works fine, user clicks on the link, it fires an ajax request to admin-ajax.php ...
0
votes
0answers
28 views

Plugin dev: How to multiply instances of a plugin in the same metabox?

I have a picture uploader that fits inside a metabox in the administration. I would like to have four instances of this uploader in the same metabox in order for the administrator to manage 4 ...
0
votes
2answers
85 views

Enqueued Stylesheets Effecting Admin Styles

I'm building a custom theme for a client and I've been adding stylesheets incorrectly for a while, so I decided to do it the correct way :-). However, when I add the stylesheet to my functions.php ...
0
votes
0answers
124 views

How to add a class to wp-admin custom sub menu item?

I was given the following code snippet: <?php add_action( 'admin_init','acme_custom_menu_class' ); /** * Iterates through the menu items in the dashboard and then applies a custom class * ...
0
votes
0answers
13 views

SSL doesn't deliver parts of Wordpress Administration Module

I have a very strange problem in my website. Let me figure it out: Firstly I have an SSL website https://example.com when I log in into /wp-admin i can't see some features like my Media Library or my ...
1
vote
1answer
136 views

Unit testing in the WordPress backend (is_admin() is true)

I've asked this on IRC, Twitter, Slack — am utterly astonished by how difficult it is to locate the answer to this: I have a bunch of plugin code that only runs when is_admin() returns true, i.e., ...
0
votes
0answers
196 views

Get URL of current featured image with JS in edit post view

Is it possible, somehow, to fetch the URL of the currently set featured image when you're in the edit post view? So far I've looked at fetching via jQuery such as: var url = jQuery('#set-post-...
0
votes
0answers
24 views

How to reorganize the items in post editor page (wp-admin/post-new.php)?

How do I reorganize the menus or items in the post editing page (wp-admin/post-new.php). For example, I want the publishing box to be moved to the bottom and have the category box on top. Now I know ...
0
votes
1answer
164 views

How to add attributes to WordPress Admin Sub Menu List Items

I have been trying to find a way to add a class or an id to my custom administration sub menu. I only see a class on the first menu item. I would either like to add a css class or an ID on my sub menu ...
0
votes
0answers
14 views

No plugin and theme installation possible

I just installed the most recent Wordpress on a server. Installation went fine, I can login the dashboard. However, I cannot download any plugins or themes. First, I thought it was a permissions ...
0
votes
0answers
34 views

Changed site from HTTPS back to HTTP broke site

I have changed my site to https and now I can't log in. I can't use as admin the site. When I click to open site it says: This webpage is not available ERR_NAME_NOT_RESOLVED. What should I do?
0
votes
2answers
260 views

Allow SVG in WP step by step

I'm not strong in WP programming, bu I try to understand what to do to enable SVG in my site. I found that in need to add function below to functions.php: /** * Add SVG capabilities */ function ...
1
vote
1answer
373 views

Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php

I've set it so non-admin user can't see the "Dashboard" link or can't have access to the main "wp-admin/index.php" page. I've also added a plugin that restrict non-admin users from creating a new page....
0
votes
0answers
25 views

The same picture looks different in different WP sites with the same theme

I have pictre shown below that looks differently when I place it to different sites that are created on the same theme: In site No1 it looks normal, like in my question body: In site No2 ...
0
votes
1answer
35 views

Echo string in admin panel footer beside version no

can anyone help me out about how to showing something lets say "Hello World" beside the version no that shows up in the wp admin dashboard footer? I've already tried the action named admin_footer and ...
0
votes
1answer
178 views

Cannot login in Wordpress even after changing hash password in phpmyadmin

An hour ago I changed the password of my Head Admin user. But after this I was not able to login anymore. So I have tried to reset the password in PHPmyadmin with the md5 encoding and even with this ...
0
votes
0answers
98 views

set cookie before log out and after admin login

Hi I am new to wordpress. I had researched lot about this but didn't succeed. I want to set cookie value NULL before logout and custom value after admin logged in. So I put below code in wp-includes/...
0
votes
0answers
68 views

Adding custom OGP meta tags stops wp-admin redirecting to wp-login.php

I tried to use custom OGP meta tags in my theme's functions.php file. I followed the method described here; I literally copy pasted the code. After adding the code into my theme's functions.php file,...
0
votes
0answers
42 views

Removing options from attachment details

In the image gallery section of my Wordpress admin, when I click on an image I get something like this: My site allows multiple users to add images and I feel that most of these fields are ...
0
votes
0answers
22 views

Add custom option to admin menu wordpress

I need to create a new option in my wordpress admin menu, I know I can create this using add_menu_page() but what I specifically need is an option to 'Add Property', which has similar options in there ...
0
votes
1answer
195 views

Order by modified date working in POSTS but not PAGES

I found the following code at bytefreaks.net. It adds a sort-able column to edit.php, but the column appears only on Posts and not on Pages (...?post_type=page) bytefreaks suggested putting it in ...
0
votes
0answers
97 views

Why is the Dequeue Not Working For All Plugin Styles and Scripts?

I'm trying to increase the load performance a with more sensible loading of admin scripts and styles. I am dequeueing and deregistering scripts and styles where they don't need to be loaded. I've ...
0
votes
1answer
107 views

wp_nonce_url to users.php for deleting user not working

Using wpjobmanager plugin for my site gojobr.com.au : I've encountered a problem: to combat spam users that keep posting the same spammy jobs (they are doing so manually so no a captcha won't solve ...
0
votes
1answer
28 views

I cannot access my WP website after changing settings

I have broken my website. I went into the general settings in the Dashboard and changed my site URL from www.therealdeal.org.uk/newsite to www.therealdeal.org.uk. I left the Home address as www....
0
votes
0answers
29 views

wp-admin search posts by title only and show sub pages

I've got a custom post type that in the CMS I would to be able to alter the search so it only searches by title of the post, then also pulls through all sub pages of that page. Currently I have the ...
0
votes
2answers
152 views

Making menu link open in new tab?

I'm trying to add a top level menu to the left sidebar of the WordPress admin panel. Here's the code I currently have: add_action( 'admin_menu', 'linked_url' ); function linked_url() { add_menu_page(...
0
votes
0answers
34 views

Next and previous page buttons in wp-admin don't work

I have a problem I have never seen before. For some reason the next and previous page buttons in my wp-admin are messed up. Everything is working just fine on the website except for those buttons. The ...
0
votes
0answers
53 views

Super Admin unable to access appearance/customize.php on multisite

Basically when I am on my main site, in the admin area, my url is site.com/wp/wp-admin, when I try to navigate to the theme customize page I get the "Cheatin, uh?" message. On my second site I am ...