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

learn more… | top users | synonyms (1)

3
votes
2answers
4k views

How do I load a CSS style into WordPress admin area only?

I'm trying to load a CSS file for my WordPress post area, but having no luck. I have read over the wp_enqueue_style function and came up with the code below, but it doesn't load up. Is there a tag or ...
0
votes
1answer
108 views

Posts and Pages not showing on admin, but showing in theme

I've just transferred a WordPress install over from and old IIS server set up by our client, to our new Lunix based VPS. Whether that is relevant or not, i'm not sure. I've changed all the usual ...
0
votes
2answers
48 views

Shortcut to widget/sidebar editing on the admin menu?

We have a sidebar consisting of some text. The client/owner will want to change the sidebar text occasionally. Out of the box he'll have to do this by navigating: -> Admin menu -> Appearance -> ...
0
votes
2answers
160 views

how to know if admin is in edit page or post

I use this after I checked if the user is admin if ( isset($_GET['action']) && $_GET['action'] === 'edit' ) is there better way?
4
votes
1answer
232 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
58 views

How should I setup the “Users” area to hand over to a client?

We're about to hand over a Wordpress site to a client; this is the first one we've built from scratch. Our "Users" area just consists boringly of the admin login with my work email like so: . ...
2
votes
1answer
215 views

With WP 3.4 customizer, while using postMessage & working within your JS for one option, can you retrieve current value for another option?

I'm currently working with this awesome article by Otto: http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/ For my question, I have two separately registered settings, ...
0
votes
0answers
43 views

Wordpress MU and Media Uploader issue

Ok, a bit longer question here: I have WP MU and I have a page on main domain from where blog admins can update/manage their pages/posts. so it looks like: www.MainDomain.com/members On that page I ...
0
votes
0answers
75 views

Limit posts/pages in admin to user roles

I'd like to limit the posts and pages listed in the admin area to certain roles. There are plugins out there that can do some of what I need but they aren't granular enough for my needs. For example ...
0
votes
0answers
38 views

Fetch post from one WordPress blog & display it on other WordPress blog

I am having 2 WordPress install.One for website & one for blog. I want to display post from my blog to website.How can i achieve it? Is there any way to fetch post from one blog to another? Is it ...
0
votes
1answer
47 views

How to 'If Author' Comments Check

I would like to add extra markup to a comment made by the site admin/post author. Is there a check for this and how would I add it to my code below? Basically, if the comment is from the post author ...
5
votes
2answers
836 views

Modify Admin Bar Link

Starting on line 474 of /wp-includes/admin-bar.php there is a function that is declared as the following: function wp_admin_bar_new_content_menu( $wp_admin_bar ) What it does it generates the + New ...
0
votes
1answer
45 views

Dynamic Wordpress Admin Panel

I would like to create a customized Wordpress admin panel that changes based on the user's log in credentials. For example, if the site administrator logs in from the WP-Admin page, they would be ...
0
votes
0answers
174 views

Change column of row action (Quick Edit) links in WP_List_Table

Is it possible to move the "Edit | Quick Edit | Trash", etc... links (A/K/A "Quick Edit links") from a table generated by a custom post type registration into a different column other than the "Title" ...
0
votes
1answer
124 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 ...
0
votes
2answers
40 views

If statement for admin page

How should I write if condition to display specific code only when I enter this page: /wordpress/wp-admin/post-new.php?post_type=slideshow This is what i was trying to get ;) Thanks to Krzysiek! ...
2
votes
1answer
128 views

Admin Post Update Redirection to Posts Screen

Is there a hook I can use that when a post is created or updated it goes back to the list/table page of all the posts. If it is also possible to target a post type as well that would be cracking. ...
0
votes
0answers
33 views

Plugins and user roles

Alot of plugins only allow for Admins to edit, and i want other roles to edit those as well. I have a wp site running WooCommerce which has a user role "shop manager" and i have a plugin that users ...
7
votes
3answers
383 views

How can I target WordPress 3.8 new interface MP6 with CSS?

When MP6 was a plugin in WordPress 3.6+ it changes the body class of the admin and added an "admin-mp6" class which helps me to style my plugin accordingly. Now with the latest Alpha of WordPress 3.8 ...
16
votes
5answers
6k views

What are the standard admin CSS id/class tags?

Is there a list of WordPress CSS id/classes that i can use to build plugin option screens that look and feel more like a normal WordPress option page? i have found some through serendipity but it ...
0
votes
1answer
30 views

Collection of fields in a single post

It's possible to create custom post types and custom fields but, is it possible to create custom field collections? That is, groups of different fields as an entity (a dropdown, two images and a ...
0
votes
3answers
588 views

How to prevent parent admin page from appearring as a child admin page

I am using this code: add_menu_page($page_title, $menu_title, $this->capability, $menu_slug, $function); Which is adding top level admin page. When I add: add_submenu_page( $menu_slug, 'sub ...
0
votes
0answers
33 views

How add / edit dynamically same meta boxes in CPT?

What I would like to do? :) I am sorry, but I am not native English, and I a newbie in WP. I don't know how I can search on it. So I created CPT (this is my first wp plugin). In CPT I only need the ...
0
votes
1answer
34 views

Username was changed to “admin”

I suspect a hacking incident in my wordpress site. My username was changed to "admin". How to revert back my username safely? Thanks
0
votes
0answers
40 views

Disable wp-admin log on lightbox overlay

When you're logged into the WordPress admin, and your session times out, a lightbox overlay pops up requiring you to log back in. This is causing a problem for me. If we leave a tab open overnight, ...
4
votes
1answer
2k views

Hide other users' posts in admin panel

I intended to run a multi-author site, I don't want the posts from other authors to be shown in /wp-admin/edit.php page. I managed solve this problem by the codes from this thread. The code is like ...
0
votes
0answers
21 views

site admin for subscribers

I want a very basic page for my subscribers to change their passwords and profile. No Wordpress news etc. Is is possible to strip the admin section of subscribers and leave the absolutely bare ...
7
votes
6answers
2k views

Disable dragging of meta boxes?

Anyone know how to disable this functionality so the meta boxes can't be repositioned?
0
votes
0answers
75 views

Added input box and button with jQuery to the Add New Post page. Clicking/pressing them always reload the page

I am adding a simple pair of input box + button dynamically to the Add New Post page, using jQuery. This is the code in my js file: (function($) { $(document).ready(function() { var ...
0
votes
1answer
39 views

Custom admin menu for a selection of pages

I have a site with 30-35 pages. The customer only needs to edit 3 of them on a regular basis. So to make it simpler and easier for them in the backend, I would like to create a new admin menu item and ...
0
votes
0answers
17 views

No “Users” tab for other administrator-level users

I have WP working great for me and I'm the main 'admin' user. I've created Administrator-level accounts for other people in my company. When they log in, they see exactly what I see except they don't ...
5
votes
3answers
1k views

Change admin bar to default:off

While I quite like the admin bar I actually want it to be OFF by default instead of ON ( I don't want to disable it altogether because I want users to be able to turn it on if they want - but but I ...
0
votes
0answers
24 views

Custom styles and scripts for specific admin screen

Which is the best way to load different scripts and/or styles for different admin pages? For example: edit.php (a style, a script) edit.php?post_type=page (another style, another script) ...
2
votes
2answers
48 views

How to find out if an wp-admin action edited a file?

I want to create a small plugin to automatically purge the APC opcode cache after specific actions in the Wordpress admin interface. This is necessary if e.g. apc.stat is set to 0, as a change to a ...
1
vote
1answer
496 views

Settings API - adding setting fields dynamically?

Is there a way of adding settings fields dynamically? I have my own Settings API options generator just like in Chip Bennet's Oenology Theme, everything works perfect but I can't find a way to create ...
0
votes
2answers
65 views

Clear custom field when new tag is added

When adding a new tag in the admin interface, WordPress doesn't reload the page. It appears to send the data with an ajax call, clear the fields and add the tag to the list on the right. I am working ...
0
votes
0answers
28 views

Moved a site to a new server with a new SSL cert and now admin will not load

I moved site over to a new server with a new ssl cert, but the same domain. I am now seeing the following when trying to load the site with https in Chrome: Error code: ERR_SSL_PROTOCOL_ERROR It ...
0
votes
2answers
735 views

Changing 'view' link for custom post type on list post screen?

How can I change the page that the 'view' action links to on the list post screen for a custom post type? Update I've got it to work with normal post types using the below code but where do I define ...
1
vote
1answer
125 views

Plugin: AJAX query external API to sync to tables

I'm wanting to write a plugin that hooks into an external API and syncs to a couple of database tables some information. I want to do this in a best practice way if there is one. I want the user to ...
2
votes
1answer
174 views

add_submenu_page set for multiple roles [duplicate]

I have this string: add_submenu_page(basename(__file__), 'Events', 'Colloqui', 'subscriber', 'BW_events', 'BW_events'); How can I let this be available to editor(s) too? I tried ... ...
0
votes
1answer
56 views

Sortable column containing numeric values for Custom Post Type at WordPress Backend

I have custom post type named Cars. By default, it is sorted by post publishing date, which is very unusual. WordPress should have provided option to sort columns containing numeric values. Alas, ...
34
votes
7answers
13k views

Organizing Code in your WordPress Theme's functions.php File?

The more customization I make to WordPress the more I start thinking about if I should be organizing this file or splitting it up. More specifically, if I have a bunch of custom functions which only ...
0
votes
2answers
37 views

Admin Dashboard - Recent Comments source

I need to see the source file for the admin dashboard widget that shows recent comments, can anyone point me to the exact php file that does this? I can't find it anywhere on the codex or in google ...
0
votes
2answers
407 views

How to remove/hide Yoast's “SEO” tab in admin panel?

I don't want this shown to members who register for my website as it's confusing and irrelevant for them. I assume some code added to functions.php will do the trick but what code?
3
votes
1answer
245 views

Enabling jquery when dragging available widget to sidebar area

So I have some widgets that are using some custom jquery on the backend. I can get the widget forms to call the jquery files but only AFTER I've saved the widget and reloaded the page. Is there ...
0
votes
1answer
108 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 ...
0
votes
2answers
115 views

Customizing WordPress Admin - How to Change the Avatar size

I am in the process of customizing the back-end of WordPress for a new product that we will be releasing. I am trying to figure out what the best way is to update the avatar size that shows up in the ...
1
vote
1answer
142 views

All Users > User List > Update User Meta Field Inline

I am asking user few questions at the time of registration with checkboxes like In Registration form [] I am blah blah [] I am blan blah [] I am blah blah Now user will come for approval in admin ...
2
votes
1answer
3k views

Send automatic mail to Admin when user/member changes/adds profile

Is there a way to send the updated/added values from profile, when a member/user updates his/hers data, to the admin of the site or another emailadress? Can this be the first step? /* do something ...
0
votes
1answer
389 views

Blocking Administrative Access to Authors and Subcribers?

I would like to turn off admin panel for authors and subscribers. Is there any secure way to keep them away from admin panel?