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

learn more… | top users | synonyms

1
vote
1answer
27 views

How to use the same code for multiple pages?

The code below prevents a page (defined by its title) from being deleted. When I try to implement two occurrences of this code (one for each page I want to prevent from being deleted) I receive the ...
0
votes
3answers
113 views

How to remove admin menu pages inserted by plugins?

I've got the following code, which cleans up a lot of stuff that is not going to be used within the admin area: add_action( 'admin_menu', 'my_remove_menu_pages' ); function my_remove_menu_pages() { ...
1
vote
0answers
28 views

edit.php alter links

I want to alter the view of edit.php in the posts admin area. What I want is when a category is set ( $_GET['cat'], cat=x in the url ), add post would be post-new.php?cat=x. Is this possible? I know ...
0
votes
0answers
11 views

wp-login not processing when not localhost

I'm trying to get a site up for a client on IIS7, MySQL. The front-end works fine no matter what and, as long as the siteurl and home parameters are set to "localhost" (either in database or ...
1
vote
1answer
156 views

ASCII to Unicode conversion and then save the data into database using WP post editor field

Here is the WordPress default post editor as we know: You may notice, here are some garbage texts in the Title and Description field. They are ASCII texts. PLOT In Bangla, a widespread software ...
0
votes
0answers
41 views

Cannot edit posts after moving WP site

Just moved a 3.8.1 site to a new hosting service. Copied all files (checking all permissions afterword) as well as a complete copy of the db. Uploaded db on new server, and updated the config file ...
-2
votes
2answers
166 views

Removing Author name

I want to remove the author name from every post. O am using a website in wordpress.org. and I'm using tweenty fourteen theme. How to remove the author name? Do I have to go to the Author template ...
1
vote
1answer
50 views

Edit default comments page in WP Admin

I need to make major changes on the way the comments are rendered in backend, from the following file: wp-admin/includes/class-wp-comments-list-table.php I know editing the WP Core files directly is ...
0
votes
0answers
50 views

user_has_cap filter allows edit but will not allow save

Problem I'm working on a website where we need to be able to put a username in the custom field of a custom post type, and allow the user specified to make changes to that post and only that post. I ...
1
vote
2answers
60 views

How to place HTML below the title of the (custom) post overview

Edit: Yes, I know, I provided an answer to this question myself. However, I'm still interested in other solutions and/or comments on the one I found. Is this how you would do this? Are there any other ...
28
votes
10answers
15k views

Can I rename the wp-admin folder?

Is it possible to rename the wp-admin folder? I know I could just rename it, but unless it's supported by the code lots of things would break. If I use a custom folder name, it will make it slightly ...
1
vote
1answer
7k views

Change WP-Login or WP-Admin

Can I change the name of the wp-login or wp-admin file so that I can go to a different filename in order to login. I am trying to prevent hackers from finding my login and wp-login has become a very ...
0
votes
1answer
61 views

Admin Panel - Custom Menu Sub-Item LINK

I'm trying to add a custom link under my Post Type in my admin menu, which will link to Pending Posts. This code functions, but it instead makes a page (like I suppose the function should), but I just ...
0
votes
1answer
38 views

Get post id in Post Page within Wp-admin

I want to get post ID within Post page. I need this for custom meta box so i can set the id in shortcode. I can show the result in notices but don't know how to make it global to use for meta input. ...
0
votes
1answer
25 views

Always show same size tags for Tag Cloud in Wordpress Admin

I wanted to know if there was a way to modify the back-end of Wordpress to do 2 things: Make all tags' font the same size, so none are larger than the others Always show the most used tags when ...
0
votes
2answers
351 views

How to restrict user to see his comments only and admin can see everyone comments?

i was trying to achieve this how can i restrict user to see his comments only along with admin replies and admin can see everyone comments? Any suggestion with code would be helpful as i am new to ...
0
votes
1answer
260 views

Change maxlength of link_description in dashbord link section?

Im using wordpress together with qtranslate and it works on pages and post but not in menus, widgets etc. So i created jquery scripts to solve those issues. The problem is that the field ...
1
vote
1answer
177 views

How do I add to the list table a filter?

I am trying to find the hook for adding a filter to the list under "Posts [Add New]":
0
votes
0answers
19 views

Group Pages based on Parent in Admin Area

EDIT: I've managed to solve this with the help of Reddit. For those interested I used Admin Column View My website has about 50 pages separated under 5 parent pages. In the backend it is a mess of ...
0
votes
1answer
46 views
1
vote
1answer
183 views

wp_list_table search box does not show

I'm using wordpress 3.8 and a custom class derived from WP_List_Table. Why is there no search form? My code in plugin class: function __construct() { ...
1
vote
1answer
31 views

how to redirect to url.com/wp-admin if url.com/admin is typed in?

How would I create a wordpress function that will redirect a user to myurl.com/wp-admin if they type in myurl.com/admin? I would like to have this as a wordpress function.
0
votes
0answers
11 views

Use admin notices to show errors [duplicate]

I'm using the transition_post_status hook to perform some operations after publishing a post. If an error occurs, I would like to use the admin notices to show a message to the user: ...
0
votes
2answers
94 views

How to show an error message after publishing a post?

I'm using the transition_post_status hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under "Edit Post" and above "Post ...
1
vote
6answers
3k views

Adding fields to the “Add New User” screen in the dashboard

I'd like to add the field "Company Name" to the add new user page in the admin panel. I've done quite a bit of searching and have been unable to find details on how to do this. I can easily add info ...
0
votes
0answers
209 views

Admin blank but Admin menu showing

A client website has recently had the issue of a blank admin but the menu is showing. No admin pages appears at all. Just plain ol white, nothing showing in the source code either. Front end of the ...
0
votes
1answer
87 views

remove plugin admin menu in wordpress without installing plugin in v3.8.1

I follow instruction on this page to remove some admin menus. http://codex.wordpress.org/Function_Reference/remove_menu_page But is seems it only works on default wp admin menus. Admin menu added by ...
0
votes
2answers
46 views

Prevent from deleting any user role but subscriber

In the administration of my blog, I would like to prevent anyone (admin included) from deleting any user unless it is a simple subscriber. Basicaly, in the "users" section of the administration, I ...
2
votes
1answer
62 views

Cancel post save

I need to abort the post saving process when the post content contains a specific string and then display a message to the user. I found a method to display the message but didn't find a way to ...
13
votes
4answers
2k views

Register CPTs using Dashicons for admin menu icon in WP 3.8

WordPress 3.8 introduced in core the plugin MP6 that among other things use an iconic font called Dashicons to display fonts in the dashboard. Now, is well know that register_post_type has an ...
1
vote
1answer
147 views

Custom rewrite rule for backend/admin?

I would like to create a custom rewrite rule that will take the URL: http://domain/submit-project/add but display http://domain/wp/wp-admin/post-new.php?post_type=project Is there any way to do ...
0
votes
0answers
63 views

Appearance->Editor not visible

I'm noticing that the editor is not visible from past few weeks. It's working fine on my other WordPress sites but in one site it's not visible. I tried changing theme and deactivating plugins but ...
0
votes
1answer
87 views

Sort All Posts by Category Name in the Admin Panel?

I'm working on a pretty complicated site where everything is managed by category type including automatic spinner image submission, etc.. Unfortunately, its doggone difficult to manage things when the ...
3
votes
0answers
27 views

WordPress admin webfonts (dashicons) go to blank squares after inactivity (random) [duplicate]

I'm using the new WordPress 3.8 and I've noticed that when I leave the admin page open in a tab, and return later, I'm getting a random thing happening with the dashicon fonts used for the menu icons. ...
0
votes
2answers
80 views

WordPress 3.8 get current admin color scheme

I'm trying to get the stylesheet of the currently active admin color scheme to style a plugin to fit into the color context. As mentioned in this post I had a look at the implementation of ...
10
votes
1answer
607 views

WP 3.8 Default Admin Colour For All Users

I am surprised with the new colour scheme for 3.8 and although the classic 3.7 theme has gone, I would like to set the new "Light" colour scheme as the default for all users, but at the same time, ...
-2
votes
1answer
34 views

Changed functions.php file and now site is blank [closed]

I tried to change the functions.php CSS page, commenting out the original load fonts function and replacing it with my own. Now, when I try to access the site, I just get a blank page. Even worse, ...
1
vote
2answers
63 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
1answer
17 views

Custom Field select list is truncated

The site I'm working on has many custom fields being used in it's pages. For some reason though, the list of custom fields that you can pick from the dropdown only displays the first 30 field names. ...
0
votes
2answers
57 views

Elegantly using JavaScript on widget admin forms

I'm working on a project involving a lot of widgets, and I'm thinking it'd be really great to have a "More options" section built using jQuery UI Accordion that expands when clicked. So, I've ...
1
vote
1answer
134 views

How To Remove WordPress Version From The Admin Footer

Is there anyway to remove version number from the right side of WordPress admin footer? I know this code will add some text before the version number, but it will not remove it: function ...
3
votes
1answer
662 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 ...
0
votes
1answer
251 views

.htaccess in wp-admin produces a redirect loop

I've decided to take the advice of protecting the /wp-admin directory using .htaccess on a website which keeps getting hacked. Whenever I upload .htaccess to /wp-admin, my browser says /wp-admin has ...
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']); ...
0
votes
1answer
1k views

How do you force the wordpress dashboard to be 1 coulmn by default?

How do you force the wordpress dashboard to be 1 coulmn by default? I want to show the dashboard as a single column for all users.
0
votes
1answer
53 views

Dashboard Widgets - Add Admin Page With Same Functionality

I have a plugin that has its own dashboard with basically quick-views of relevant data and I wanted to know if there was an "easy" way to mimic the functionality of the admin dashboard where you can ...
1
vote
1answer
48 views

Cannot access WordPress login pages

I cannot access either wp-admin, or wp-login.php on a wordpress site. I'm not getting a 404, or a redirect, it simply says cannot connect in firefox. I have tried everything relevant on this guide ...
9
votes
3answers
4k views

Create mobile site with same content just different theme

I have a wordpress site and want to create a different theme for mobile. I'd like to create a subdomain such as m.domain.com which will use a mobile optimized theme much different than the desktop ...
0
votes
1answer
57 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', ...
4
votes
5answers
208 views

Delete Post From front Page ( With Wp-admin restriction )

am using this function to delete post from front // Delete from Front-End Link function wp_delete_post_link($link = 'Delete This', $before = '', $after = '', $title="Move this item to the Trash", ...