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

learn more… | top users | synonyms (1)

1
vote
2answers
2k views

Add social icons in a theme through custom admin menu

Is it possible to make a theme with an option of configuring social icons with links through the custom header control panel? I googled it and found nothing that could help me, any help on that topic ...
1
vote
2answers
583 views

Admin pages have no content

Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, ...
7
votes
2answers
1k views

Admin: very slow edit page caused by core meta query

We've been noticing really long load times when going to edit a post or page. Using Query Monitor, we found that this WP core query is taking upwards to 15-20s. SELECT meta_key FROM wp_postmeta ...
0
votes
0answers
31 views

WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance

I am having an issue with initializing the inline link toolbar in a custom instance of the WP editor. The instance is added in a dynamically loaded modal using the wp_editor function and some ...
1
vote
1answer
535 views

Ordering posts by custom taxonomy in admin area

EDIT @kaiser - this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term ...
0
votes
1answer
28 views

Admin page redirect to another admin page

How can I redirect certain WordPress admin pages to another admin page. For example I never want a user to see wp-admin/about.php it should always redirect to wp-admin/index.php. There are also a ...
4
votes
2answers
1k views

is_admin() returns true when using admin-ajax.php from front end script

Had a situation today where I was using admin-ajax.php from a front end script. As I understand it this the wp way to make ajax calls (registering my function with the wp_ajax_nopriv_myfunction hook) ...
0
votes
1answer
1k views

How to get a value from wp_dropdown_user?

In the admin dashboard, I want to show a list of all users (done so far by wp_dropdown_users) and then take the selected userID and use it as a parameter in another function. :) Sounds easy eh. I've ...
0
votes
3answers
1k views

Can't access Admin section of Wordpress using MAMP

I have been developing a Wordpress site locally using MAMP, and I have run into an issue twice now where when I leave at night and come back, I can't access the admin page. I have debugging on, and ...
1
vote
0answers
13 views

Add 'Last Modified' and Attachments (Yes/No) to WordPress Users Column

I was wondering if someone can put me on the right path in regards to adding additional columns that show the last modified date and if a user profile has attachments. Ideally I'd also like to be able ...
0
votes
2answers
31 views

Admin menu disable new/delete page

So I've been tinkering with the admin roles and I can't seem to be able to revoke create page rights for the admin. I can only find 'Edit page'. If I remove Edit page, the entire pages tab goes ...
0
votes
0answers
6 views

submenu item under other top level menu and change some fields

I would like to add the 'Add new' user submenu to have a different name(in the menu) and under a custom top level menu that I created. I have removed most of the standard admin menu and replaced it ...
2
votes
1answer
898 views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
2
votes
2answers
1k views

How to remove “Super Admin” from All Users for those that are not a “Super Admin”?

I would like to remove the filter at the top that says "Super Admin" for users that are not a "Super Admin". How do I go about doing this? This screenshot shows what I am talking about:
0
votes
0answers
8 views

Saving option values in array using register_settings and add_settings_field [duplicate]

I've been able to save different options as single options in the database. What I'm trying to do is to save them all in one single row, using an array. This is my code: register_setting( ...
4
votes
3answers
2k views

body_class hook for admin pages

The body_class hook seem only to work with non-admin pages. When I do add_filter('body_class', 'add_body_classes'); function add_body_classes($classes) { $classes[] = 'myclass'; ...
0
votes
0answers
17 views

Custom Post Type - multiple in single menu position

I currently have a couple of 'Custom posts types'. Currently, each of them has a separate item on the menu but I would like to add them all as sub for one position. I have somethink like this: Movies ...
1
vote
0answers
98 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
0
votes
0answers
21 views

I need “View” option in posts wp-admin to show a page for admin, not open website view

Ok I have searched and Googled for this and I couldn't find anything useful, so here's the basic question that I have: Do you know when you are inside wp-admin and you have that "View" option on ...
0
votes
2answers
30 views

How to pass parameters to admin_notices?

So there is the following case. I need to display a name inside of admin_notices. class MyPlugin_Admin { public static function render_admin_notice() { echo $name . ' has been ...
0
votes
1answer
647 views

initial sort order for a sortable custom column in admin

I have created a number of 'views' column in the admin area of my posts. There are several tutorials for this and I did in fact use a number of these to arrive at my end result. It works as expected ...
261
votes
108answers
131k views

Best Collection of Code for your functions.php file [closed]

Please vote on the question and any answers you find useful by clicking on the UP arrow on the left hand side of the question or answer. As with many others who are now viewing this post, I have been ...
8
votes
4answers
7k views

How to remove entire admin menu?

I need to customize the admin panel for my user. So how do I remove the entire admin menu? Not remove the menu item, I mean entirely remove the left vertical menu bar, include the design of the menu ...
0
votes
1answer
12 views

how to disable the e-mail verification on wp-admin/options-general.php multisite admin e-mail

I have a multsite that has a bunch of blank e-mail addresses in the admin e-mail address feilds, and I just want to update them without the e-mails being verified. Background is that I am a web ...
2
votes
2answers
3k views

Add tabbed menu to admin page

I am very new to WordPress and here I want to create one admin page with tabs as shown in image How can I create such page with these tabs?
1
vote
1answer
444 views

How do I add an admin notice within javascript in the admin interface for posts?

I want to use javascript to add a notice to the top of the wordpress page just like they do when auto-saving the page. But in looking at the DOM, I don't see any special div that I could find to add ...
0
votes
1answer
42 views

Cannot login to ANY WordPress site out there

this weird thing has happened to me: I tried to login to one of my WP sites and it said: This site can’t be reached The connection was reset. ERR_CONNECTION_RESET The URL was: ...
-2
votes
0answers
23 views

forms and admin

Im looking at a fairly complex form... actually a property search form from from Zoopla API running in the inspiry real places theme. I am trying to add fields to the standard form and have found ...
4
votes
1answer
129 views

How to add internal, revision comments to page updates

I'm not sure the proper WP parlance for this, but I'd like to add historical comments to submitted page updates for version control purposes or as a supplement to the Revisions Browser. (Something ...
1
vote
4answers
469 views

Adding help information to custom post edit page

I have two custom post types created (using Types plugin) with a bunch of custom fields. I need to add a help information, instructions for admins that will show at the top of add new/edit CPT page ...
0
votes
0answers
21 views

Change admin URL for Wordpress 4.4.2 [duplicate]

I need the admin URL wp-admin/ to be something else. This is not for security. It only personal preference. I've tried many plugins and guide which doesn't seems to work for Wordpress 4.4.2: ...
0
votes
1answer
629 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
5answers
3k views

Admin Top Bar Not Showing On Front End

i'm having problem with displaying admin top bar on my site. I googled and got some solution which i tried like 1) Checking wp_footer in footer.php 2) Checkbox ticked in user profile saying show ...
0
votes
1answer
35 views

Filter posts of custom post type by meta key in (List All Section)

How can I filter the posts which are displayed on the admin list all page of a custom post based on the value of the a value. So far I know how to do the following anywhere on the front end: $args = ...
0
votes
1answer
18 views

'Conflict' with action deleted_post and is_admin()

I created a delete button on frontend for blog posts and custom type posts and I would redirect to a specific page after deleting them, I looked around on google and I found all solutions like this: ...
0
votes
0answers
36 views

Save plugin settings to a custom array and database table

First of all, please bear with my ignorance on the topic. I'm super new to WP Plugin development, and have been struggling with it for some time now. I'm developing a simple Wordpress plugin (well, ...
5
votes
2answers
1k views

Wordpress Multisite allow site admin to add user without email confirmation

In Wordpress Multisite,a site admin (not a super admin) doesn't have the option “Add the user without sending them a confirmation email” when adding a new user. Is there a way to bypass the ...
0
votes
2answers
39 views

How to change the User name and Password of admin account

By default i have selected the Username of admin account as "admin" , of the Wordpress CMS while installing wordpress first time. Now i want to deploy the webpage : considering the security ...
0
votes
1answer
36 views

How to attach post ID to image links in Wordpress tinymce editor

I'm trying to output the post ID in the rel-attribute of the image links that are generated by WordPress when using the Add Media button. I found a way to retrieve the post id and also how to ...
11
votes
3answers
8k views

How can I speed up my WP admin section?

We have many WP sites with a proxy in between the servers that they sit on and the internet. Some things in WP simply don't work: RSS feeds on dashboard looking up themes looking up plugins core ...
0
votes
1answer
45 views

Creating widget - ask for selecting a post in the admin panel

First of all, sorry for my English, I'll try to make it understandable. I'm new on WordPress; I already have created a few plugins but they didn't needed admin configuration. Now I'd like to make an ...
10
votes
7answers
16k views

Admin Ajax is returning 0

I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though I think this is actually the success message and it's not returning anything. I ...
2
votes
4answers
678 views

How to remove Gravatar from Username column

How to remove the Gravatar image from Username column in the All User admin page?
0
votes
1answer
1k views

Plugin permissions for Editor role

I've added a plugin called Orbisius Simple Notice but I notice this applied to several plugins I have installed. The plugin works fine when logged in as an Admin. However, my clients who manage the ...
9
votes
6answers
12k views

How to use more than 256MB of memory in the admin?

I'm building a site for a photographer who uploads pictures that are normally large for todays digital cameras. Images are quite memory intensive, especially the image operations like creating ...
11
votes
7answers
4k views

Disable dragging of meta boxes?

Anyone know how to disable this functionality so the meta boxes can't be repositioned?
1
vote
3answers
4k views

How to put placeholder text in the main post input area?

I'm making a course plugin for a university in England. I'm looking to put some default placeholder text in the main post content area, on the admin side. Its the rich text editor I want it to go ...
0
votes
0answers
15 views

Handling dozens of sidebars

We have the job to realize a page with custom sidebars. Sidebars can be created on the fly on post an page edit screens, to add a custom sidebar on each page. The client wants to use this to add ...
0
votes
1answer
22 views

Custom Post type sort order not working in the admin area

I have a WordPress site that has a couple of custom post types. None of these custom post types allow me to sort the posts alphabetically or by date in the admin area. I have looked all over online ...
0
votes
0answers
14 views

How to create some “theme settings” page in admin?

I'm using today some PHP constants in my functions.php to define default info about my company, as follows: define('COPYRIGHT', 'copyright_text'); define('CONTACT_EMAIL', 'oi [arroba] ...