As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [admin]

Users with the ability to perform administrative tasks for a site or a network of sites.

Filter by
Sorted by
Tagged with
0 votes
2 answers
18 views

How to quickly search posts by title in Admin interface

I have a site with thousands of posts, and in the admin interface I simply want to be able to find and edit posts quickly based on their title. The default post search functionality matches on the ...
James's user avatar
  • 101
0 votes
2 answers
67 views

AJAX call not initializing for non-admins in WordPress

I developed my ajax functionality while using a WordPress admin account and everything worked correctly. Testing as a user, however, I cannot get the functionality to call - and pressing the "...
jgdhnds's user avatar
0 votes
0 answers
25 views

Modify 'the_content' appearance in the admin area

In the backend admin area, is it possible to change 'the_content' section to appear as a basic text input similar to 'the_title'? So turning it into a simple text input, instead of the rich text ...
Andy's user avatar
  • 215
0 votes
1 answer
77 views

AJAX WP_Query's order and orderby parameters not working

TL;DR SUMMARY OF PROBLEM AJAX will not use the proper order and orderby parameters given, and instead sorts post by menu_order (posts section doesn't even have post attributes set as true). PROBLEM ...
Devon Regular's user avatar
1 vote
2 answers
198 views

Display notice in block editor after wp_insert_post_data hook

I have a custom post type which checks and validates some (custom) meta fields added with it upon publishing. I am using wp_insert_post_data for the purpose: public function __construct() { $this-&...
sariDon's user avatar
  • 255
0 votes
0 answers
25 views

Display taxonomy terms when adding a link in the admin

When you add a link in the admin and make a research, all post types are displayed, but I wondered if there is an easy way to display also taxonomy terms. It would be very useful. Thanks!
Etienne Delcambre's user avatar
0 votes
0 answers
45 views

Wordpress site down for my IP only after trying to implement .htaccess whitelist

UPDATE: the problem seems to have solved itself now, about 24 hours later. It would still be useful to know what happened, though. My team and I have tried to make 2FA plugins work with WordPress a ...
Mark's user avatar
  • 1
0 votes
1 answer
78 views

Why is my Wordpress admin not working

My WordPress admin has stopped working. This is running with WooCommerce. On the Customize Appearance > WooCoomerce > Store Notice, I tried to set the Store Notice to Off. I got this error ...
Jun Dolor's user avatar
  • 101
0 votes
0 answers
34 views

CSS Styles specific to Admin Sidebar not loading

I have several sites where I have loaded a custom stylesheet for the Admin. They work fine in both the TinyMCE editor and the sidebars. I have one site where the custom stylesheet targets the TinyMCE ...
jchwebdev's user avatar
  • 763
0 votes
0 answers
26 views

500 error for regular users, not for admin

Not sure what's going on here. Some of my pages (eg https://beatthatflight.com.au/) are getting 500 errors. However other pages (https://beatthatflight.com.au/index.php/2022/12/19/56-fast-free-easy-...
Mark Mayo's user avatar
  • 105
0 votes
0 answers
20 views

Display admin sidebar into custom post pages if logged

Is it possible to display the default admin sidebar in a custom post type page (frontend view) if user is logged in, as happens for the admin top bar? If is possible, how can I do this? Any hint?
vvave vvave's user avatar
0 votes
0 answers
14 views

How to change WP menu item type?

There seems to be no way to change menu item type from page to custom in wp admin. How can I do this? If I have big menu it’s very cumbersome to build these always by hand… Type change should be in ...
coder's user avatar
  • 1
1 vote
1 answer
27 views

Admin menu link with variable

I used this function to display a log out link below the home icon. But how could I put a variable, for instance the current username, on that link to show a profile page? The function is: ...
markseinto's user avatar
0 votes
1 answer
16 views

Filtered dropdown for author?

My site has a long list of authors. I understand the html is a select list. However, is there any way, javascript or other, to make this a filter-able list, i.e. with a search box at top of the ...
Leora Deans's user avatar
0 votes
0 answers
58 views

Why when I click on a link into the WP admin panel I am redirected to a link that doesn't contains wp-admin prefix, so I obtain 404 error

I have installed a WordPress instance and I a facing the following problem. After that I access my admin panel via the URL: https://MY-DOMAIN/wp-admin I am correctly redirected to the admin panel. The ...
AndreaNobili's user avatar
0 votes
0 answers
94 views

Override Wordpress Core File?

I'm currently writing a plugin that will not work without adding a simple action hook to one of the core files located in the wp-admin folder. Without violating best practices is it possible to copy ...
Jay Mandell's user avatar
0 votes
1 answer
445 views

Add custom css class to wp-list-table row for custom post type

Is there any way to add a custom css class based on post data in the custom post type admin table?
ZecKa's user avatar
  • 688
0 votes
0 answers
60 views

How to make the Panel // WP-Admin lighter via Mobile

By accessing the WordPress Admin Panel. via Cell/Mobile the loading is too slow. And the layout is not responsive. In Chrome console I get the following errors [Violation] 'DOMContentLoaded' handler ...
PauloBoaventura's user avatar
0 votes
0 answers
17 views

Custom column with post ID not working in CPT

I'm using this snippet to add column with posts ID: /** Admin column with ID **/ function posts_columns_id($defaults){ $defaults['wp_post_id'] = __('ID'); return $defaults; } add_filter('...
D_P's user avatar
  • 141
0 votes
0 answers
24 views

Change order of the block editor's panel

Does anyone know how to change the order of block editor's panel?
norixxx's user avatar
  • 355
0 votes
0 answers
10 views

How to set the Screen Options for Users in the Admin Panel?

So, i have this question regarding how can i set a Default View to the users when they create a product. For example, when i go to Products > Add New the main screen has a lot of options like, ...
Mauro Carrera's user avatar
1 vote
1 answer
65 views

Removing WPML Items From the WordPress Admin Bar

I'm using WPML on a website, and since I'm traducting everyting mylsef, I want to hide the "WPML Translation managment" section. I tried with : function my_remove_menu_pages() { ...
Léa Rabatel's user avatar
0 votes
0 answers
11 views

Change field layout when adding a page

When adding or editing a post, I would like to be able to move some of the fields from the right column to below the main content block. Is this possible with WordPress?
David's user avatar
  • 111
0 votes
0 answers
624 views

admin-ajax.php returns 0 even when the post status code is 200 OK

I've seen a lot of similar questions and I've incorporated the feedback from the answers but still, the issue is not resolved. Ajax request is sent on click of a button in js file. WyrRoute.js ...
Patrick2997's user avatar
0 votes
1 answer
65 views

HTML Img with data:image src gets sanitized in admin?

In the WordPress admin panel (dashboard), I want to add an image inside an ACF field description. Since it's a simple SVG icon, I want to load it using <img src="data:image/svg+xml..." /&...
Shahriar's user avatar
  • 175
0 votes
1 answer
113 views

Authorize subdomain to access and read user and admin cookies

My subdomains redirect alls in the main domain . I am the admin. We can access to my website by the main domain or subdomain. I use that to share cookies between domain and subdomain : There is no ...
imagIne's user avatar
  • 11
0 votes
0 answers
14 views

Settings API - Last two tabs not rendered separate

I'm new to the WP settings API, and a fairly novice PHP developer. I wanted to create a plugin where I provide inputs grouped under several tabs. I managed to create 3 tabs but when 4th tab and its ...
mlhyyl's user avatar
  • 1
1 vote
1 answer
297 views

External HTTP API calls slowing down Wordpress admin [closed]

By using Query Monitor I'm finding that virtually every page load within Wordpress admin results in 15-25 server-side HTTP API calls being made. Most take less than 0.1s, but there's 5 or more that ...
Baraka's user avatar
  • 111
0 votes
1 answer
34 views

CPT Columns doesn't show categories

I have the following code creating some Columns and reordering them to my CPT. // SHOW THE FEATURED IMAGE function pessoas_custom_columns_data($column_name, $post_ID) { if ($column_name == '...
Horacsio's user avatar
0 votes
0 answers
14 views

How to embed the Taxonomy Admin screen in to a Tab of a Settings Page in a plugin

I am building a Plugin which has a number of custom post types and some associated taxonomies. What I am trying to do is to embed the edit-tags screen for specific taxonomies in the Settings Tab of my ...
Vee Bee's user avatar
  • 11
0 votes
0 answers
34 views

Metaboxes inside Tab

I am learning WordPress Plugin development. In this regard I have to save some settings along with Custom Post in Admin Panel under a Menu. Can I place metaboxes inside tab for this issue like the ...
Foysal's user avatar
  • 407
0 votes
2 answers
114 views

Is there a way to add the list of recent posts into the admin sub menu on hover?

If I need to edit a specific post then I need to click the "All Posts" link and then find it. It would be nice to click directly on a link from within the popup hover sub menu. Something ...
IT goldman's user avatar
1 vote
2 answers
427 views

How to see which sites use my installed plugins (wordpress multisite)

How can I (easily) determine which of my wordpress sites are using a given plugin, on a Wordpress Multisite install? Let's say I have 1,000 wordpress sites on a Wordpress Multisite install. I have 100 ...
Michael Altfield's user avatar
0 votes
1 answer
46 views

Insert Custom Post Types

I am learning WordPress plugin development. I need to insert Custom Post Type. I registered custom post type using register_post_type(). I am getting below Form when I would like to insert a New ...
Foysal's user avatar
  • 407
0 votes
1 answer
184 views

Change the destination of the URLs in post.php

The post.php screen lists posts vertically in the admin area [and other post types]. Each item's post_title is a hyperlink, directly above some inline choices. Both the title link, and the "Edit&...
John Dee's user avatar
  • 493
0 votes
1 answer
25 views

Admin Panel Development [closed]

How to create Tab on Admin Panel like "General Settings" screenshot ? How to create List on Admin Panel like "Pages" screenshot ?
Foysal's user avatar
  • 407
0 votes
1 answer
138 views

How to pass multiple parameter in add_action()

I have below code. add_action( 'admin_init', [$this, 'settings_page_registration'] ); I would like to use enqueue_assets function name inside add_action(). Should I use like below ? add_action( '...
Foysal's user avatar
  • 407
0 votes
1 answer
13 views

Newly created user role not displaying on users screen

I have created a new role with the following code: add_role('sponsored_content', 'Sponsored Content', get_role('contributor')->capabilities); I have added users to this role. When viewing the ...
Tommizzy's user avatar
0 votes
1 answer
16 views

Does an administrator access allow someone to access to the WordPress database?

I gave an administrator access to a developper and he made a copy of my entire Wordpress website (meaning : files from my FTP and the whole database). How did he succeed to do that ? Does creating an ...
PhpDoe's user avatar
  • 119
0 votes
1 answer
449 views

Theme javascript/css 404

I have recently installed WordPress 5.9.2 on my VPS using Apache2 on Debian 11. I want to try some different themes (partially because I think the editor for the new Twenty Twenty-Two theme is clunky ...
Minecraftchest1's user avatar
1 vote
1 answer
67 views

Fallback media image for featured image not working in admin column

I want to display a fallback image if a custom post type does not have a featured image set and displayed in a custom admin table column. However all that is being output is the image url and not the ...
Krys's user avatar
  • 135
0 votes
1 answer
217 views

sortable columns for multiple custom post types not working

I have two custom post types named professor and campus. To each of these CPT's I have added two custom admin columns named image and last_modified, which currently display correctly on both CPT's ...
Krys's user avatar
  • 135
0 votes
1 answer
819 views

Add checkbox in admin post list - show checked post in widget

I try to make a plugin with a widget where I can mark / check posts, maybe old post I want to bring back to life. I want to add a checkbox in the field before the title, like I try to show in the ...
bjovaar's user avatar
  • 21
1 vote
1 answer
160 views

What is the practical difference between is_admin() and is_blog_admin()?

I can see that the 2 functions are almost identical. Only difference is in one line: @is_admin() return $GLOBALS['current_screen']->in_admin(); @is_blog_admin() return $GLOBALS['current_screen']-&...
Viktor Borítás's user avatar
0 votes
1 answer
21 views

JS button animation for ajax the WordPress style

I'm creating a backend ajax functionality form, and I'd like it to stay within the WordPress style. There is a small spinning circle animation that appears on certain forms, like when you try to ...
John Dee's user avatar
  • 493
-1 votes
1 answer
134 views

How to remove a specific script from bulk wordpress posts and images description?

My site got hacked and I found on the end of each post and image description. Is there any way to remove it? Thank you Gusti
Gusti's user avatar
  • 1
1 vote
0 answers
68 views

Settings API not saving values to database

Here is what I'm attempting to do: I have two fields called Client ID and Client Secret. I would like to save each individual item in the database as the following keys: instagram_client_id and ...
Sema's user avatar
  • 11
0 votes
1 answer
48 views

Allow users to give a dashboard widget a custom name using ACF

I want to use ACF (and CPT) to allow users to give a custom name to an admin dashboard widget from a settings page. In the below code, a widget would be created called "my title". If the ...
Doug Higson's user avatar
0 votes
1 answer
52 views

Can I have custom post types in "Add menu items" on in the Admin > Appearance > Menu

I want to easily add custom post types to my menus. I know that I can do it with a custom link but I want to make it as easy as possible for a client. How do have a custom post type selectable under '...
lomokev's user avatar
  • 173
0 votes
0 answers
21 views

Possible to show in media library if images are being used as featured images?

Is it possible to make an admin column in the media library that will indicate whether or not an image is used somewhere as a 'featured image'?
imagina's user avatar

1
2 3 4 5
35