Tagged Questions

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

learn more… | top users | synonyms

0
votes
3answers
38 views

Create Custom Admin Fields

I'm looking to create custom admin options/menu/fields (I'm not positive on the correct terminology) and would like some guidance. I found a post here which does speak about it in the answer: Tips for ...
0
votes
1answer
64 views

Run two wordpress on the same domain

Edit I have a productive wordpress site (example.com) and a test wordpress site (test.example.com). For the two sites, I've a productive and a test DB. Everytime when I'll access the settings for ...
3
votes
4answers
3k 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
1answer
34 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 ...
1
vote
0answers
55 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
44 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 ...
0
votes
0answers
223 views

List post in wp-admin and sort them

this is my first public plugin called Sort posts in taxonomies. With the plugin I intend to list regular posts and custom post_types in the Category(Taxonomy) edit page in wp-admin. Further give the ...
0
votes
0answers
53 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 ...
1
vote
1answer
156 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
1answer
77 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
1answer
202 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
82 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
90 views

jQuery .change() Event Bubbling in WP Admin

Experiencing some very odd behaviour in WP Admin, specifically on widgets.php. I'm creating a custom widget, and am writing some simple JS. This is the hook I'm using to enqueue my JS: /** * Enqeue ...
0
votes
1answer
73 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 ...
1
vote
1answer
544 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]":
1
vote
1answer
46 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
13 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
780 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 ...
0
votes
0answers
41 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
162 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
3answers
138 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 ...
1
vote
2answers
64 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 ...
-3
votes
2answers
1k 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 ...
0
votes
0answers
909 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
358 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
29 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
1answer
166 views

How to Filter in the “Add Media Popup” to show only “unattached” Media

Any idea how to hack WP 3.8.x for this feature?
0
votes
2answers
288 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 ...
-2
votes
1answer
166 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, ...
0
votes
1answer
38 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. ...
1
vote
2answers
118 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 ...
2
votes
1answer
1k 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 ...
1
vote
2answers
1k 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 ...
1
vote
2answers
354 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 ...
0
votes
1answer
183 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
410 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
1answer
151 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
43 views

Custom post type won't take my custom fields

I have written the following plugin: <?php /* Set up the post types */ add_action( 'init', 'mdg_kjdz_register_post_types' ); /* Register the post types */ function ...
0
votes
0answers
36 views

getpost content with all formatting for admin pages

All My post usually uses various plugin based data manipulations (Like visual layout, grouping, plugin css, etc) And now I want to render a post content in my admin page. On using following code: ...
0
votes
1answer
70 views

How to display product category's individual product list in shop page?

I want to display each product category's sub products list in the shop page. Actually now in my shop page was displaying the whole list of products. But when ever i click on the list of sub category ...
0
votes
3answers
266 views

Add a custom text to admin footer in a Custom Post Type page

I want to customize the footer text in a Custom Post Type admin page. I have a plugin that creates this custom post type and want to add in it a function to customize admin_footer_text. As you can ...
0
votes
1answer
23 views

Filter / add_action to upgrade.php page

I'm wanting to change the wording and add some styling to the upgrade.php page. We have a situation where we update our codebase across multiple sites via Git - when a user logs in after the update ...
0
votes
0answers
572 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 ...
1
vote
1answer
680 views

Show Custom Post Type values in Wordpress grid view

I have created a custom post type in WordPress as shown in figure. What i want is to show the values eneterd in this custom post in the grid view of admin panel. Now the admin panel is only showing ...
2
votes
2answers
586 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() { ...
2
votes
1answer
129 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 ...
0
votes
2answers
80 views

Wordpress Admin Login Custom Logo

I know this may not be possible.But just trying to know wordpress deeply. Is it possible to replace default admin login page with custom one?
1
vote
0answers
136 views

can not access wp-admin after migrating to openshift

I recently migrated to Redhat's Openshift PaaS. My site is little bit slow in loading but working fine but Now I am unable to access wp-admin. mysite/wp-admin is redirecting to ...
0
votes
0answers
136 views

Admin - post order by category and sub category

I am trying to get the list of posts ordered in the admin area when sorted by their parent category. Ideally it would sort like this: parent category 1 -child category 1 --post 1 --post 2 ...
10
votes
1answer
861 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, ...