Tools for site administration located in the `wp-admin` directory of a WordPress site.

learn more… | top users | synonyms

0
votes
2answers
2k views

Using TinyMce with textareas in meta boxes on custom post types

I am trying to use the http://www.tinymce.com/ plugin to add a tinymce to my textareas in my meta boxes I have created. I've googled other ways and either I cant get it to work or didnt grasp the ...
0
votes
1answer
49 views

What is the right way to include a wp-admin file in your theme?

I'm trying to use wp_delete_user() in my theme, to allow a user to delete their account from the front-end. Turns out that the wp_delete_user() is not defined unless /wp-admin/includes/user.php has ...
0
votes
1answer
76 views

CSS of the admin panel

Where can i get hold of the CSS of the admin panels? Id like to make it look different on my development environment so that no one changes the production server by mistake. Like giving it a different ...
0
votes
0answers
124 views

Forcing Wordpress Administration onto a separate SSL Host

I've inherited a half-dozen or so wordpress sites. In a perfect world I would just put every one of them behind SSL throughout but I don't quite have enough IP addresses to go around and SNI will cut ...
0
votes
2answers
151 views

Removing Dashboard Menu Items Through The Database

I'm dealing with a previous developer that's being difficult. He's removed the Plugin & Settings menus through the database (I'm assuming) as I can't find it anywhere in the functions.php file and ...
0
votes
1answer
989 views

adding the category to the admin column for a custom post type?

I have built a custom post type called article and the information given on the admin summary screen is sparse. I was able to add the featured image post thumbnail image using the ...
0
votes
0answers
64 views

Why wold sending headers (for a csv download) throw a Page Not Found error?

I'm writing a plugin to download some data into a csv file (from the admin section of my wordpress site.) I've tried two different methods to customize the headers and prevent the wp-admin template ...
1
vote
0answers
83 views

Filter pre_get_posts does not modify Mine/All/Pending

Maybe I need to use a different filter, but I am using the pre_get_posts filter to filter out posts on a custom post list view. It works for the main table, but the quicklinks to (All) (Published) ...
0
votes
0answers
36 views

root gets failed login on attempted theme installation via ftps

Outside of wordpress I can ftp with password and user name, root, and see the effects I expect. When from admin at wordpress I try to download and install a theme, it asks for credentials and if I ...
1
vote
2answers
447 views

File exceeds upload_max_filesize, despite max filesize being large enough

I am trying to upload a 762KB picture using the multi-file uploader at /wp-admin/media-new.php. This page reports that my maximum upload filesize is 2GB. However, once the upload progress bar gets to ...
5
votes
1answer
179 views

Completely remove WP_Admin_Bar for specific user roles

How do I hide/remove the admin bar that is displayed when a user with specific role is logged in? I figured I have to do something with remove_menu(), but not exactly what and how. Codex
0
votes
1answer
23 views

how to customize the default #adminmenu in wp-admin

i want to customize the #adminmenu for the wp-admin, how can i target the class via plugin? im planning to use below function, but im not sure if this is the correct way of doing so.. ...
0
votes
2answers
669 views

How to create sub menu with a URL parameter?

I would like to add parameter for the submenus, but when I click to the admin page I receive the following message: You do not have sufficient permissions to access this page. Code: ...
2
votes
1answer
148 views

Ordering Post 2 Post admin meta box by meta from CPT

I've just started using Posts 2 Posts (brilliant plugin by the way) in combination with a custom post type called "Artist" and the WP Event Manager Plugin. My aim is to use P2P to link Artists to ...
0
votes
1answer
335 views

'wp' hook supposed to trigger when editing a post?

I'm trying to figure out if this is by design, a bug or a feature I should try to request. I created a plugin and added the following code: function test_wp() { echo '<div style="position: ...
0
votes
1answer
48 views

Customize wp-admin form custom fields

I would like to customize some form elements in my WP admin area: starting from this example (http://api.jquery.com/val/ the one with the select) what I would liko to do, is to update a via a select ...
1
vote
1answer
358 views

Grouping of CPTs and taxonomies into menu groups in admin

I have a group of custom post types such as "CPT A", "CPT B" and "CPT C". I display the admin page for each of these as subpages under a common Admin page. add_menu_page('Console', 'Console', ...
0
votes
0answers
95 views

$current_screen if condition for a specific page in admin

Right now I have this code to add some changes in my WYSIWYG editor in admin: add_filter( 'default_content', 'custom_editor_content' ); function custom_editor_content( $content ) { global ...
1
vote
1answer
289 views

Send email to user that his post has been rejected

I am searching for a solution for the following problem: I am using WP User Frontend, so that users can create posts in the frontend. After saving, the admin needs to review the post, and the ...
0
votes
1answer
122 views

is_admin() conditional statement

I built front-end log in like this. <?php if( is_user_logged_in() ) { ?> <?php /* Template Name: front page */ get_header(); global $user_identity; $redirect = ...
0
votes
2answers
92 views

Increment Page Order As Pages Are Created

In the Admin Panel, is there a way to hook into the page creation and increment Page Order number of each page or to be equal to the number of pages. Right now the default is 0 and when I make a new ...
0
votes
1answer
23 views

Cannot access WP admin because plugin returns 204

I recently installed a plugin on my schools wordpress site that one of my friends wrote, that should pull the newest video from a youtube page and post it. If the video hasn't changed, he set up the ...
0
votes
1answer
117 views

JQuery multiple toggle values

I'm trying to hide/show metaboxes dependant on the page template chosen. This has been working fine until I have come to show a metabox on more than one chosen page template. The below code displays ...
1
vote
1answer
2k views

wp-admin url doesn't allow to login and redirects to same page

I am using wordpress 3.6, the latest version. In this version when i access login page for admin url like www.example.com/wp-admin and i enter user name and password, wordpress redirects me to the ...
0
votes
1answer
270 views

Add filter-by-tag in the all posts admin console page

By default the 'all posts' page contains the following filters by date by category Is there a way I can add 'by tags' as well ?
0
votes
2answers
124 views

Site Crashes When Updating to WordPress (Version 3.6)

I was just clicking the update button behind in the admin panel. it said no enough space in my hosting. then i went and removed some files and tried again then it was processing the wp update. ...
0
votes
2answers
125 views

Hide metabox dependant on page template chosen

I'm using the following JQuery script from this answer to toggle the display of metaboxes dependant on the Page Template selected. The example below shows the featured image metabox when the default ...
3
votes
2answers
2k views

Change the edit page for a custom post type?

I've been looking for this all day and can't find it. I'm working on a custom contacts page and I am using the custom post type feature so that I can have more control over it. I'm looking to change ...
0
votes
0answers
97 views

403 Forbidden for wp-admin for me but not my customer

When attempting to log into my customer's site domain.com/wp-admin, I get a 403 forbidden error which redirects me back to //127.0.0.1/?redirect_to=http%3A%2F%2Fdomain.com%2Fwp-admin%2F&reauth=1. ...
5
votes
1answer
363 views

Custom ReCaptcha Login

I'm trying to add ReCaptcha to my login page. I know there are many many plugins by per request I cannot use plugins. So far so good, I'm able to add the Captcha to my login but unable to show errors. ...
1
vote
2answers
994 views

Create any admin page with tab menu on that

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?
0
votes
0answers
330 views

Images on admin backend not showing up

It was going alright with images a week ago! But recently when I noticed I found that image thumbnails in media library and in post editor were either not showing up or were just showing there ...
0
votes
1answer
110 views

Show a custom field instead of username in the backend author area

I'm building a new WP site with about 1200 authors(which are actually companies, pulled from my client's existing site), each attached to at least one custom post type. My problem is the admin(our ...
-2
votes
2answers
362 views

Can admin-ajax.php be used for spam purposes? And if yes, how to prevent that?

Today I've got a letter from my hosting provider that admin-ajax.php script had been sending spam until it was blocked. About two thousand spam messages were sent to different emails. I know if you ...
0
votes
0answers
101 views

Add CSS Classes Field to Media Uploader

I need a functions.php hook that will allow me to add the standard CSS Classes field to the "ATTACHMENT DISPLAY SETTINGS" section of the Media Uploader modal. I know the css class field can be ...
0
votes
2answers
212 views

Customize a WP_Posts_List_Table class

How can I customize output of tables of records in wp-admin/edit.php? What options are available for editing display_tablenav('top') and display_tablenav('bottom') before outputting in class ...
6
votes
2answers
314 views

How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?

I've been playing around with code snippets which add meta data to admin searches. The best snippet I've found was written by Stefano on this question. However, it appears to have 1, annoying bug ...
0
votes
1answer
399 views

Post data in wp-admin to external database

I am trying to make a private form to submit data into an external database so that I can later pull from the database and display the records on a page. So far I have been trying to create a plugin ...
1
vote
1answer
192 views

Simultaneous admin updates causes custom fields to not update

Okay, I have another doozie of a problem and although I'm still in the middle of trying to figure out exactly what's going on and what kind of help I might need, I thought I'd throw something up here ...
2
votes
1answer
3k views

adding custom stylesheet to wp-admin

im having troubles getting my custom stylesheet work on WP-ADMIN area. plugins_url('style.css', __FILE__) ); do i have to create folder in my plugins named css or do i just copy my .css to the ...
0
votes
2answers
69 views

Admin login not working

I can't log in as admin on my wordpress site. I've tried to change the password, and a bunch of other stuff, but no result. What happens is that I come back to the log in page, no message. The strange ...
0
votes
1answer
275 views

How i add new link after Edit | Quick Edit | Trash | View in quick edit section

I want to add new link in custom post type . I have create a custom post type and i want to add new link after Edit | Quick Edit | Trash | View links like Edit | Quick Edit | Trash | View | PDF . How ...
-1
votes
1answer
86 views

Create custom page and custom menu

I'm trying to do one custom menu at my wordpress admin panel. My plans are: make and menu, to add some contents at a custom page, like "people" and their names, etc... I wanna make it with php. I ...
1
vote
1answer
217 views

Backend search; include CPT meta?

I've currently got a CPT with 2 part titles; I've got everything working perfectly on the frontend. But when it comes to searching for a post, the post you're searching for doesn't always show up ...
0
votes
1answer
94 views

Install old version of plugin from admin panel?

Is there a way to install an old version of a plugin that is hosted on the WordPress.org plugin repository from the admin panel? I know that you can easily go to the WordPress.org plugin repository, ...
2
votes
2answers
653 views

Custom login redirects to wp-admin on wrong password

My custom login form redirects to the wp-admin login when an user doesn't manage to guesses his/her credentials right. How can I manage to redirect the user to the current form instead? And of course ...
0
votes
2answers
83 views

Rename menu items for All except super admin

I can rename wp-admin menu items But How Can I active it for all users except Super Admin ? add_filter('gettext', 'rename_admin_menu_items'); add_filter('ngettext', 'rename_admin_menu_items'); ...
-1
votes
1answer
235 views

My website's wp-admin redirects to another website's wp-admin after pointing the site url to a subdirectiory

* DETAILS THAT LEAD UP TO MY PROBLEM * I'm familiar with WP's Giving WordPress its own Directory in codex. I am experimenting on my personal website, erons-expressions.com with redirecting to ...
0
votes
0answers
507 views

Wordpress subdomain wp-admin redirects to main domain

we have a wordpress installation running on address www.example.com. We wanted to have a development site for it as a subdomain, so we created a subdomain dev.example.com on cpanel. Created a ...
0
votes
1answer
44 views

Why do Metabox use Nonces?

Why is it advised for admin panel metaboxes to use nonces? Every example I see of creation and saving metabox data there are nonces involved but aren't nonces a bit unnecessary in this case?