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

learn more… | top users | synonyms

1
vote
2answers
3k views

Retrieve Path of admin.php

Is there a better way of retrieving the path of admin.php and the url of wp-admin.css? What I can think of is: $adminphppath = ABSPATH . '\wp-admin\admin.php'; $admincssurl = get_bloginfo('wpurl') . ...
1
vote
2answers
481 views

Using /wp-admin works, using /login gives a 404. Why?

I just did a manual install and tried to login, but was unable to do so using domain.com/login. I got a 404 error. When I used domain.com/wp-admin, no issues. Did I do something wrong or forget to do ...
0
votes
1answer
875 views

Add custom fields to a page template, admin side

I'm adding a page template to the theme I'm currently using. Is there any way to make the admin editor to show some input text fields or other options for the template? For example, I'd need two ...
0
votes
2answers
301 views

Add Post Screen Keep Category structure

So on the add post screen in wordpress there is the category checkbox div. Before you select a category for your post it shows the correct hierarchical structure as defined in the category admin ...
0
votes
1answer
446 views

submenu item edit a specific post

I'd like to have a submenu item in the admin section link directly to the edit form for a specific post ID, a custom post type at that. Basically looking at using the add_submenu_page function to add ...
5
votes
2answers
3k views

do_shortcode() within Admin Page

I'm using a few plugins that have shortcodes ... however, instead of creating a public page for the content, I've created some new pages within the admin using add_menu_page and I need to know how to ...
1
vote
1answer
60 views

How to check if upload window came from the featured image link?

I need to verify if the media-upload screen came from a click on the "feature image link" on the admin screen. How can i do it? I've already change the way the uploader works , but I need to check ...
0
votes
2answers
159 views

How can I open up my administrative panel to everyone?

I'm planning on running a open news site that I want everyone to be able to view the inside of the site without registration. I feel like it should exist a simple check for viewing the WordPress ...
3
votes
1answer
291 views

Looking for a hook to add attachment information to the media library tab

I would like to be able to determine if an image has been attached to a post by looking at the collapsed viewmedia library tab. Is there's a hook I can use to add that data to this view of the Media ...
0
votes
1answer
76 views

Edit page header on a custom plugin

I am writing a custom plugin for Wordpress but how in the world do I edit the page header? I need to add some javascript and related codes there.
1
vote
1answer
568 views

Associating custom submenu item with post type of top level menu item

I'm working on a plugin that sets admin menu submenu pages on all different post types. I need to be able to associate these new submenu pages with the corresponding post type of the top level menu ...
1
vote
1answer
147 views

Stop loading “collaborators” users on add new post or page?

So our website has about 20k "collaborators" type of users and we'd like to stop loading all of them on the select box on the "add new post" or "add new page" PAGE. Maybe load only authors and above ...
0
votes
1answer
1k views

Custom Field values not Showing in Edit Page of Custom Post Type

Custom Field values not are not showing in respective fields while i click the "edit" button .. they just show blank as we are creating a new post.I am able to save the values in custom field while ...
4
votes
1answer
3k views

Remove specific items from Quick Edit menu of a Custom Post Type?

I would like to remove some items from the quick edit screen on a custom post type. I would like to remove "slug", "date" and "password", as they will never not be used by end users. I'm open to ...
2
votes
1answer
186 views

Only allow new subpages to be created

I'm looking for a way to only allow users to create new subpages once there are nine pages that are parents/root pages. Once there are nine parent pages when trying to create a new parent the users ...
0
votes
1answer
81 views

Working with post values in the admin panel

I have this basic admin page functions.php <?php include('ui.php'); ?> ui.php <?php function gui() { include('gui.php'); } function add_page() { $themename = 'Cesaro'; ...
0
votes
1answer
99 views

admin_print_styles incuding $_SERVER['DOCUMENT_ROOT']

All the Javascript isn't working in the admin area on my production server. Locally it works fine. I have narrowed it down to /wp-admin/wp-header.php line 72-78 do_action('admin_print_styles'); ...
2
votes
2answers
553 views

Why should I password protect WP-Admin?

Just occured to me: what's the point of password protecting www.yoursite.com/wp-admin when a user can just type www.yoursite.com/wp-login.php, bypassing the password on /wp-admin? Am I missing ...
2
votes
2answers
155 views

Redirect members to custom page upon logging in through WP admin

When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal.
0
votes
1answer
217 views

Sort by post word count in admin area

I have a custom post type called species which consists of a number of meta_fields. Ideally, what I'd like, is a word count for each species profile (that's just the term I use for a singular post of ...
1
vote
2answers
501 views

special characters after saving draft interpreted as �

I am trying to create posts in hindi language. These characters UÉeÉMÑüqÉÉU after saving/publishing are interpreted as U�e�M��q��U. Though, the special characters are stored with no change in the ...
0
votes
1answer
675 views

Error messages & can't reach admin after upgrading to 3.4.1 WordPress

My hosting company upgraded their php, so my site was getting all sorts of error messages. So, I make a backup of all my content, deleted the wp-admin, wp-includes and loose files in html, then ...
0
votes
1answer
2k views

Sort wp_nav_menu() by menu order

I have made a custom menu handler for the back end, sorting the via a drag drop based on CMS Page Order. The problem now is that it seems that it's not possible to sort wp_nav_menu in any other way ...
2
votes
1answer
445 views

Getting the different post statuses + count like in edit.php, in a custom submenu page

I'm trying to create a submenu page for reordering posts/pages. Right now I'm trying to include the list that display the different post statuses, for example: All (5) | Published (4) | Draft (1) I ...
2
votes
1answer
2k views

Remove “Parent” Selection When Adding/Editing Categories?

I've been trying to find a way to hide/deactivate the Parent dropdown menu from the Posts -> Categories screen. http://example.com/wp-admin/edit-tags.php?taxonomy=category I was able to hide the ...
0
votes
1answer
48 views

WYSIWYG editor not in a post editor?

It is possible to use the WYSIWYG editor in theme settings (not in a post editor)?
1
vote
1answer
208 views

Remove rows in the manage post/page view

I'm looking for a way to remove the rows with the title, date and other stuff that's shown on the manage posts/pages screen (highlighted with red in the image below). I know that I could easily hide ...
2
votes
2answers
275 views

I cannot log into my wordpress site with my wp-login.php [closed]

I can login into wordpress.com - but I cannot login to to my hosting wordpress site: http://www.hunterbaby.com.au/wp-login.php When I try to reset password it only recognises my wordpress username - ...
1
vote
2answers
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
2answers
2k views

How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?

I would like to add a custom Metabox with HTML content in the screens New and Edit Posts/Pages ( /wp-admin/post.php?post=POST_ID&action=edit), so that I could display a list of editorial ...
5
votes
2answers
8k views

Remove “posts” from admin but show a custom post

After checking out: http://codex.wordpress.org/Function_Reference/remove_menu_page, I successfully use the following code to hide some stuff from the menu: add_action( 'admin_menu', ...
1
vote
2answers
798 views

How to change the label text in default setting pages?

I've seen various tutorials on how to modify the menu items of a Wordpress Site's admin, but I'm trying to find a tutorial or way on how to modify the actual admin page labels. Here's what I mean: ...
0
votes
2answers
739 views

Custom Columns WordPress Admin

I am just about finished creating custom columns through the WordPress admin panel. The custom post type I am using is called "slides". I figured out how to add the column titles and all of the ...
7
votes
1answer
2k views

Filtering the Admin Comments List to Show Only Comments from the Current User?

In the Comments page (/wp-admin/edit-comments.php), every logged in user can see all the site comments. I'd like the users to see only his/her own comments and the comments that are left to ...
1
vote
1answer
369 views

WordPress' ALL post count info on its dashboard does not match phpMyAdmin's ALL post count!

While phpmyadmin's wp_posts table reports something like this Showing rows 0 - 29 (10,223 total, Query took 0.0022 sec) SQL query: SELECT * FROM `wp_posts` LIMIT 0 , 30 Wordpress's dashboard ...
0
votes
3answers
2k views

can't access backend while frontend works perfect

Before 2 days there was a automatic update for wordpress, which I for my website. When the update was over, I tried to access backend but I always get this message: Fatal error: Call to undefined ...
0
votes
1answer
72 views

retain querystring values when savincustom options in admin

Quick question, I have a custom options page which posts to options.php, however I have a few sections to my options page where i change the post url like so: <form ...
0
votes
1answer
794 views

Migrated wordpress site give “Undefined variable: php” warnings

I have just migrated my wordpress site from my laptop to my desktop. I get server error 500 when I try /localhost/wordpress/wp-admin. So I turned on WP_DEBUG and now I get a series of Notice: ...
3
votes
2answers
1k views

Hide a theme on list of themes in wp-admin without editing core files

I'm running a multisite network with 200+ themes installed and activated. Is there a way to manipulate the list of available themes in wp-admin so that certain theme does not appear in the list? I ...
1
vote
1answer
34 views

plugin to post from admin to flickr [closed]

I'm looking for a plgin which allows the admins to post to flickr directly from the admin panel when posting. I saw this and thought it would work but seems to only 'get' images not 'post' them ...
0
votes
1answer
150 views

firing function at login within class

I've got a function that I'm trying to fire at wp_signon (grabs data from a remote server and updates accordingly). I'm running the function within a class that is on a secondary file in a plugin ...
-1
votes
1answer
721 views

Creating your own options-general.php page

I wanted to develop a duplicate General Settings Page instead of the built in one and all the settings on the built-in General Settings Page will also be displayed on the new General Settings Page.. ...
1
vote
1answer
139 views

Hide Pages on Edit Pages based on Capability (edit_others_pages)?

Currently, WordPress does a great job displaying pages on the Edit Pages admin area for users with the capability edit_others_pages. However, if a user has edit_others_pages and has not yet authored ...
0
votes
2answers
889 views

How to Custom Edit Post Title & Permalink Slug?

I'm trying to build some functionality where if you're logged into an admin account you'll see a small 'edit' link next to each post title. clicking will use jquery to create 2 form inputs - 1 with ...
0
votes
1answer
192 views

Wp-Admin FTPS Connection Error unlike Filezilla

My wordpress website is just moved FTP to FTPS protocol. When I tried to make a connection with FileZilla, the connection is successful. There is nothing wrong with my FTPS connection. Status: ...
0
votes
3answers
1k views

Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins

The Problem I first noticed this with the plugin Quick-Cache, which activates without problem, but doesn't shows up anywhere. Its menu it's simply not there. Found why, and became aware of the ...
0
votes
1answer
289 views

Why wp redirects me to wp-login.php when I visit a rewritten wp-admin URL?

I have this rewrite rule ^dashboard(.*) wp-admin$1 [L] and wp redirects me to wp-login.php when I try to visit /dashboard (even if I am logged in) Any idea why this happen, and how I can solve ...
3
votes
2answers
1k views

Add mass action to wp-admin/users.php

I'm heavelly modified my Wordpress, it's amazing what you can do with wordpress hooks, actions.. But i'm not able to find how can i add mass action for users. Let's say i select 5 users and i want to ...
0
votes
2answers
176 views

htaccess and htpasswd

im trying to lock my admin panel from my users with adding htpsswrd file to wp-admin folder. but also i want my users can edit their profiles. so i create this file (htaccess) AuthName "Username and ...
0
votes
1answer
550 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?