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
0 answers
15 views

Header & Footer menu option not available in admin

I am trying to make some changes to the header of my site, but the menu to adjust them is no longer visible on within the admin navigation. No idea where it has gone and i cant figure out how to get ...
  • 1
0 votes
1 answer
10 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 ...
0 votes
0 answers
13 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 ...
0 votes
0 answers
34 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 ...
0 votes
1 answer
19 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?
  • 570
0 votes
0 answers
18 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 ...
0 votes
0 answers
12 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('...
  • 141
0 votes
0 answers
9 views

Change order of the block editor's panel

Does anyone know how to change the order of block editor's panel?
  • 335
0 votes
0 answers
8 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, ...
1 vote
1 answer
10 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() { ...
0 votes
0 answers
9 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?
  • 101
0 votes
0 answers
44 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 ...
0 votes
1 answer
28 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..." /&...
  • 133
0 votes
1 answer
35 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 ...
  • 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 ...
  • 1
1 vote
1 answer
69 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 ...
  • 111
0 votes
1 answer
27 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 == '...
0 votes
0 answers
9 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 ...
  • 11
0 votes
0 answers
24 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 ...
  • 397
0 votes
2 answers
37 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 ...
0 votes
1 answer
95 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 ...
0 votes
0 answers
77 views

Can't login to Wordpress admin panel after changing domain to use Wordpress pages as a fallback from React

we had our Wordpress page running on example.com. But now, we're developing new React website, which already has some of the webpages ready. We use Vercel to host that React website. We want React/...
0 votes
0 answers
13 views

Prevent users to delete comments from trash

As told in the title, I am looking for a way to prevent users to delete comments from the trash. Only admins should be able to. I tested the scripts at: Function to prevent users from trashing ...
  • 1
0 votes
1 answer
36 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 ...
  • 397
0 votes
1 answer
24 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&...
  • 463
0 votes
1 answer
24 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 ?
  • 397
0 votes
1 answer
55 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( '...
  • 397
0 votes
0 answers
19 views

Can't see past events on admin dashboard

Wordpress admin dashboard only shows the current and upcoming events, but there's seemingly no way to access the past events through admin dashboard. The event page on admin dashboard (wp-admin/edit....
  • 1
0 votes
1 answer
8 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 ...
0 votes
1 answer
15 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 ...
  • 95
0 votes
0 answers
19 views

Function to Load Admin CSS for Super Admin on Multisite

I Run a multisite and have a function for normal admins working fine, however when adapting the code below for super admins it just does not work, the echo CSS style works perfectly, but register and ...
  • 11
0 votes
0 answers
8 views

List only parent attributes on woocommerce admin atrributes page

I would like to add option on attributes page screen options, to filter out only parent attributes. The main struggle is that I can't even alter the query... I tried actions: parse_query, ...
  • 296
0 votes
0 answers
11 views

Edit Page did not get refresh after update

I notice if I performed a filename change for an image under "Edit Page", the page does not get refreshed automatically. Is this normal? Replication Step Upload new image via "Upload New Media&...
  • 13
0 votes
1 answer
115 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 ...
0 votes
0 answers
16 views

theme directory fallback image outputs url and not the image

I am adding a custom post thumbnail column to the user admin table in WordPress. I want to retrieve a fallback image from my theme image directory if no post thumbnail has been created. I don't want ...
  • 125
0 votes
0 answers
14 views

accessing the Admin page

My problem is that I did have Xampp and Word Press downloaded and was working on them just fine. Unfortunately over the course of the pandemic I didn't access them for quite a while. I had to upgrade ...
  • 1
1 vote
1 answer
38 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 ...
  • 125
0 votes
1 answer
58 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 ...
  • 125
0 votes
1 answer
370 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 ...
  • 21
1 vote
1 answer
70 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']-&...
0 votes
1 answer
12 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 ...
  • 463
-1 votes
1 answer
45 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
  • 1
1 vote
0 answers
63 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 ...
  • 11
0 votes
1 answer
31 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 ...
0 votes
0 answers
20 views

How can I put content before my custom post type default pages?

I created a plugin with a Custom Post Type, and I want to add a menu before all of my plugin pages. The pages are mixed, there are custom pages (where I can add the menu easily), and there are a few ...
  • 1
0 votes
1 answer
20 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 '...
  • 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'?
0 votes
1 answer
19 views

Live reload preview just reloads forever

There is a new preview feature on WordPress that looks like this: When it's clicked, it reloads the preview over and over and over again. Why would this happen? I tried disabling different plugins ...
  • 113
1 vote
2 answers
140 views

Searching custom fields is removing search on the post_title column

I have the following custom search active in our WP admin for only administrators add_action('pre_get_posts', 'query_custom_admin_search', 21 ); function query_custom_admin_search( $wp_query ) { ...
  • 288
0 votes
0 answers
32 views

Wordpress Admin extremely slow when other admin logged in

The sites has multiple authors/admins, who may sometimes edit/publish posts at the same time. Whenever more than one user is author/administrator is editing/publishing another post, the WP Admin ...
  • 101

1
2 3 4 5
35