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
18 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 ...
  • 215
0 votes
1 answer
28 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 ...
0 votes
2 answers
87 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-&...
  • 225
0 votes
0 answers
20 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!
0 votes
0 answers
39 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 ...
  • 1
0 votes
1 answer
48 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 ...
  • 101
0 votes
0 answers
30 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 ...
  • 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-...
  • 105
0 votes
0 answers
15 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?
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 ...
  • 1
1 vote
1 answer
25 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: ...
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 ...
0 votes
0 answers
41 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
75 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
275 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?
  • 678
0 votes
0 answers
52 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
15 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
13 views

Change order of the block editor's panel

Does anyone know how to change the order of block editor's panel?
  • 345
0 votes
0 answers
9 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
51 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
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?
  • 111
0 votes
0 answers
513 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
44 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..." /&...
  • 145
0 votes
1 answer
91 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
221 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
33 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
12 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
31 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 ...
  • 407
0 votes
2 answers
82 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 ...
1 vote
2 answers
319 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
96 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
17 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
44 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 ...
  • 407
0 votes
1 answer
97 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&...
  • 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 ?
  • 407
0 votes
1 answer
111 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( '...
  • 407
0 votes
0 answers
25 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
11 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 ...
  • 105
0 votes
0 answers
44 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
1 answer
321 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 ...
1 vote
1 answer
62 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
180 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
730 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
130 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
18 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 ...
  • 493
-1 votes
1 answer
105 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
66 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
46 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 ...

1
2 3 4 5
35