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

learn more… | top users | synonyms (1)

1
vote
1answer
85 views

Filter or action hook to insert content on admin pages before </body> tag

I am developing an administrator plugin and want to be able to write some HTML content just before the last body tag . This content will initially be hidden then displayed with javascript when a user ...
1
vote
1answer
108 views

using rewrites to secure login page

I'm trying to be sneaky with iis to secure a wordpress login page (not my choice to run a windows server, but that's the reality of things). It's worked so far, only the login page itself loads itself ...
1
vote
2answers
101 views

Disable inline_edit() on edit.php

In the class WP_Posts_List_Table there is a function named inline_edit() and it is responsible for rendering the entire quick edit table that is used (but initially hidden) on wp-admin/edit.php. I ...
0
votes
0answers
49 views

Adding line to multidimensional array option

I'm building a shipping plugin with a settings page where the user can add boxes with the attributes : Name, Length, Width, Height So far, I have managed to greate an option boxdata[l,w,h] and I have ...
0
votes
0answers
51 views

disable admin-bar search field for specific roles

I would like to disable the admin bar search field when certain users, belonging to specific roles are logged in. I would like to keep the search field available for the role 'admin', but not others. ...
0
votes
0answers
63 views

WP No Base Permalink only works with logged user (admin)

(My apologies for my poor English, I'm french) I just want to have a shorty URL for all page of my WP Site: www.example.com/wordpress-answers-is-a-good-site for my posts insteads of ...
0
votes
1answer
51 views

Overview with latest edited posts and pages

I'm looking for an overview of all the latest user activities. But I don't want to see comments on this page, just the edits or creations of new posts or pages. Unfortunately I can't find such a ...
6
votes
2answers
363 views

sort child pages on admin

I have a hierarchical CPT with the following structure: - parent item 1 - child item 1 - child item 2 - child item 3 - child item 4 - child item 5 - parent item 2 - child item 1 ...
3
votes
1answer
1k views

Uploading Images to Multi-Site Causes Failure to HTTP Error

Just to fill you in on my situation. Running WordPress multi-site version: 3.5.2 clean install. Zero 3rd party plugins. All of my plugins have been disabled for debugging. Using WordPress MU ...
5
votes
2answers
4k views

3.3: How do you hide the new dashboard welcome panel?

I have tried various versions of this here: unset($wp_meta_boxes['dashboard']['normal']['high']['dashboard_wp_welcome_panel']); ...
2
votes
3answers
7k views

How does admin-ajax.php work?

we are having some issues with an external developer. i am not a wp person so i turn to the masses to help out. we want to limit access to the wp-admin site to internal access only (via vpn). simply ...
1
vote
1answer
81 views

Replacing the List table of a Post Type

Is there a way to replace the WP_List_Table object of a post type to display said post type differently on the Admin edit.php page?
1
vote
1answer
199 views

Dashicons and Pseudo :before

I am generating a custom post type that uses the dashicons and allows users to select one to associate with the post. The idea being the user can select an icon from a drop down list and it is ...
0
votes
0answers
25 views

Linking a user with a specific post type they are allowed to modify and hide the rest

I've looked everything on internet but didn't found the answer to my problem. Here is my situation. I'm using, for a college website, Wordpress 3.8 and the amazing plugin Advance custom field and CPT ...
1
vote
1answer
42 views

Adding an admin menu page showing the link twice - how to solve this?

I'm newbie and I'm trying to create a plugin to add a menu to left menu in admin section. i have create the page but it is working fine. but i find the left menu being displayed twice. how can I ...
0
votes
1answer
102 views

How to remove menu from WP-Admin menu

I would like to hide option of template from the menu side in wp-admin. I tried this code but its not work , its no hide the option:- //hide in admin menu add_action( 'admin_menu', ...
0
votes
1answer
68 views

Add menu item to edit specific page

I have pages setup and want a top level menu item to direct to editing a specific page. I'm reading through add_menu_page and it doesn't list how to get to specific pages or posts edit page. ie ...
0
votes
0answers
20 views

How to sort post_meta in edit.php?

I have Custom Type cpt1 and Custom Fields cf1, when you use hook manage_cpt1-bien_sortable_columns, wordpress don't sort the post_meta ?
0
votes
1answer
43 views

Scripts are not called until I login from wordpress backend

I am enqueuing custom scripts for slider in header.php but it is not working until I login from backend. I am working on localhost. The code is <head> <meta http-equiv="Content-Type" ...
0
votes
0answers
53 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
83 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
413 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
950 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
102 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
39 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
364 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
967 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
115 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
71 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
121 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
5k 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
38 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
48 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
56 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
371 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
254 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
68 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
426 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
388 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
92 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: . ...