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

learn more… | top users | synonyms (1)

0
votes
0answers
51 views

Unsure how to add simple checkboxes that write to a small table to admin

I've been doing a lot of reading on the add_meta_boxes...but there's so much information that I'm confused about when to use them. I have a little plugin that writes out some checkboxes and then when ...
2
votes
2answers
6k views

Use latest jQuery in WordPress (admin interface)

I want to use the latest jQuery (and jQuery UI) versions on my admin interface (editing a specific post type that I created). I tried this: // jQuery 1.x wp_register_script('jquery1x', ...
0
votes
2answers
79 views

How do I set up the defualt page icon for admin menu?

What do i Change this to So its shows the default page icon?', plugins_url( 'myplugin/images/icon.png' ) add_menu_page( 'Info', 'Info', 'manage_options', 'LINK', '', plugins_url( ...
0
votes
0answers
25 views

How can I place the “Add New Post” contents on a custom page?

I created an alternative to the default WordPress Admin panel for my writers to use as I wanted more flexibility (in design) and a simpler interface. I've been successful thus far but I can't seem to ...
1
vote
2answers
397 views

How can I make uploaded images in the editor load with HTTPS?

I have the admin section of my site using HTTPS. This works pretty well except that the images inside the TinyMCE editor (the post and page rich text editor) load with http instead of https and so I ...
7
votes
6answers
917 views

What are the best practices for updating?

Don't want to do anything to take down my blog. Here are some upgrade-related questions: How often should Wordpress be updated? What is the best way to do it? How to know if there is a problem with ...
1
vote
3answers
96 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
3answers
38 views

How to detect when admin user is on the All Posts page?

Could anyone be kind enough to descrive how to I can detect (in my functions file) when admin an user is on the 'All Posts' page? I have tried get_post_type() but it returns nothing. Thanks.
2
votes
4answers
356 views

Conditional check for front-end which includes ajax

I need a conditional which exits if the context is not a front-end view including AJAX requests. I have this at the moment: if (is_admin() && !DOING_AJAX) return; The DOING_AJAX bit ...
1
vote
3answers
948 views

Determining whether it's a AJAX call from front-end or from back-end

I am developing an admin-only plugin, which uses some ajax calls in its interface. The website itself also relies on ajax calls on its front-end, too. I'd like to be able to identify when the WP is ...
0
votes
1answer
25 views

html id is removed for non admin user?

I have a custom functionality which create a custom post with info entered on a form Part of the post content is a line like <div id="featuredcocktail"> When I tested it as an admin all worked ...
0
votes
0answers
26 views

Create or Update Post Slug from Custom Fields

When i create or update a post, i want to create or update the slug (url) of my post from Custom Fields and not the title...! An idea ? Thank you !
0
votes
1answer
107 views

Admin - create custom post status and display above table

How do I create a custom post status and display it above the table of my custom post type? Example: All(9) | Published (7) | Custom_Status(2) I used the advance custom fields plugin to create a ...
4
votes
1answer
2k views

restrict_manage_posts not working in 3.3.1

I have noticed my custom taxonomy filters no longer work in the 3.3.1 admin as per these methods: Adding a Taxonomy Filter to Admin List for a Custom Post Type? I also discovered that to filter a ...
0
votes
1answer
68 views

problem with register_activation_hook in plugin

I am developing a plugin that inserts content to wordpress on plugin activation. I also have an admin are where I can add a link to the inserted post. The admin is a input box where I can input my ...
0
votes
3answers
103 views

Remove post from new menu in top bar

I have removed the post menu from the admin side bar like so: add_action('admin_menu','remove_default_post_type'); function remove_default_post_type() { remove_menu_page('edit.php'); } How ...
6
votes
2answers
4k views

Load a script just to custom post type in admin

I have created a custom post type "portfolio" with something like this : $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => ...
0
votes
1answer
16 views

disable trashability for certain pages

Im building a wp site, that has some pages that only shows when a form has been completed. (think of "thank you for gettin in touch, we'll get back to you as soon as possible" - type pages). I have ...
0
votes
1answer
37 views

How to include a file only on dashboard widgets page?

I want to add some styles to the widgets input fields. Therefore I want to include a style.css file only on the wp-admin/widgets.php page. How can I detect the above page and include file there?
0
votes
1answer
46 views

How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?

How to change the default orderby from "Date" to e.g. "Title" or my custom column in content type records list in admin? Right now the created or cahnged is always the first. But I want to order the ...
0
votes
1answer
50 views

How to modify admin headers

I'm trying to create a theme settings export script that base_64 encodes the theme options and lets the user download them as a text file. I've seen a post (What is the best way to export and import ...
1
vote
4answers
5k views

Create a dropdown with Custom Post Types as option in admin

I need to create a dropdown menu with "posts from a custom post type" as option. This dropdown will be placed as custom meta box. For example, I want all posts with the custom type "Video" as option ...
0
votes
2answers
41 views

Given multiple admin accounts, how can I make it so that only admin with X username can edit posts

My question is pretty much in the title. I have 2 or more administrators, but I only want the admin with X username to edit the title of the posts while others can only view them. Feel free ...
2
votes
1answer
363 views

How to change redirect after moving a page to trash?

How could I change the redirect location after a user trashes a page? Right now they go to all pages here:....wp-admin/edit.php?post_type=page I want them to go ...
0
votes
4answers
4k views

How can I restore admin capabilities?

So yeah, I'm a genius. I managed delete all my admin capabilities (thank you very much Membership plugin). I could restore them, ...if I had admin access, lol. Anywhoo, how can I give all my ...
4
votes
2answers
5k 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
232 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
62 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
372 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
348 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
88 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
234 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
60 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
113 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
51 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
78 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
1k 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
74 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
291 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
225 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
45 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
342 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
46 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
395 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 ...
17
votes
5answers
8k 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
46 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 ...
1
vote
3answers
721 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
34 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
38 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
48 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, ...