Users with the ability to perform administrative tasks for a site or a network of sites.
168
votes
108answers
59k views
Best Collection of Code for your functions.php file [closed]
Please vote on the question and any answers you find useful by clicking on the UP arrow on the left hand side of the question or answer.
As with many others who are now viewing this post, I have been ...
11
votes
1answer
4k views
how to filter post listing (in WP dashboard posts listing) using a custom field (search functionnality)?
despite the fact I googled a lot, I've not found the answer to a very simple question :
I have some posts with a custom field (ie supplier_name). I would like to be able to search and filter my posts ...
11
votes
7answers
9k views
Changing the Order of Admin Menu Sections?
I am getting a bit frustrated over here after having spent a few hours trying to accomplish this fairly simple task without any luck.
Essentially I have 5 custom post types which I created and all I ...
10
votes
2answers
3k views
Adding an Arbitrary Link to the Admin Menu?
Is there a way to add a arbitrary hyperlink to the WordPress admin menu (I mean the menu on the left when you log into the admin dashboard)? For example, can one add a link to Google?
In my ...
11
votes
4answers
6k views
Add a Separator to the Admin Menu?
Does anyone know how to add an admin menu separator? I found this but it did not help.
http://lab.yukei.net/wp-code/nav.html?wp-admin/menu.php.source.html
Any ideas?
4
votes
1answer
658 views
Search posts by ID in admin
I'm looking for a way to search through posts by ID, preferably with support for custom post types. I was hoping there'd be a plugin enabling this functionality, but I've failed to find anything. Any ...
4
votes
5answers
4k views
Adding Custom Field to Taxonomy Input :Panel
I am looking to achieve something which I figured would be fairly simple to accomplish but it seems there are no real examples available to achieve my needs.
Essentially I have a custom post type of ...
3
votes
2answers
658 views
Modify CSS via Theme Control Panel
Hi to all I'm trying to create an advanced control panel for my first Wordpress template but I'm not able to add a function that I will need.
The function that I'm trying to add is the possibility to ...
3
votes
1answer
2k views
Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
This answer is very close to what I am looking to do, but instead I would like to specify a specific custom field and display a select menu of its available values. Thanks!
1
vote
4answers
537 views
Using require_once() within admin
In my theme directory I have the following structure:
/includes/functions-custom.php
/includes/avatax/AvaTax.php
/includes/classes/gmaps.class.php
I'm making a call from the functions-custom.php to ...
0
votes
1answer
1k views
Dynamically Set Wordpress Post Title To The Category Name
I have a few custom post types set up. However, a couple of them have the title field removed from the edit screen because a title does not make sense in some aspects. However, I now find that all ...
2
votes
1answer
135 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 ...
2
votes
1answer
315 views
Update post counts (published, draft, unattached) in admin interface
I am working on a multi-user WordPress setup and have made it so a particular type of user can only see and interact with posts, images, pages etc that they have authored. The code to make this happen ...
0
votes
2answers
430 views
Make parent categories not selectable
I'd like that my categories having child-categories don't be selectable on the post article page.
What I want to do is to remove the checkbox before their label.
I've looked the filter documentation ...
0
votes
1answer
417 views
Wordpress 3.1's admin bar disappears only leaving its 28 px padding (in ubuntu)!
At the begining, I thought there was an issue with my HTML or CSS files. But then I realized that other people using Wordpress 3.1 had the same problem (check out this link).
The admin bar disappears ...
18
votes
5answers
5k views
Creating a table in the admin-style?
What is the recommended way of creating a page with a table, in the style of the tables showing posts or users in the admin area?
I am expanding the Cache Images plugin, and it contains a table with ...
3
votes
1answer
851 views
hide other users' posts in admin panel
I intended to run a multi-author site, I don't want the posts from other authors to be shown in /wp-admin/edit.php page.
I managed solve this problem by the codes from this thread:
...
4
votes
1answer
530 views
How to remove administrator role in settings -> general -> New User Default Role?
I don't want to accidentally select Administrator role.
So is there a way to remove it from Settings -> General -> New User Default Role ?
4
votes
1answer
2k 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' => ...
4
votes
1answer
755 views
Admin config screen without menu
I want to create a sub config from some page on admin panel, eg:
I've set config menu this way:
add_menu_page( 'E+', 'CRE+', 8, 'cr_e_plus_user_config', 'cr_e_plus_user_config');
add_submenu_page( ...
1
vote
1answer
699 views
Custom column for changing post status via ajax
I'm currently trying to implent a new custom column at the page manage screen that will let me change the status (published/pending) of the different pages via an easy toggle link.
From what I've ...
6
votes
2answers
2k views
Sort admin menu items
On a related note to "Changing the Order of Admin Menu Sections?", I'm looking for a way to alphabetically sort the entries in each sub-section of WordPress's admin area.
Currently, whenever a new ...
3
votes
1answer
369 views
How can we customize the logo and some text on the welcome screen?
I have found discussions and solutions on hiding or removing the lately introduced Welcome screen.
But we DO find the screen, as a whole, very useful and an excellent addition. So, what we are ...
3
votes
1answer
831 views
WP List Table custom quick edit box - post meta data missing and columns change on submit
I have extended class WP_List_Table to create a custom sortable table of posts along with a quick edit box with custom meta boxes.
The meta boxes populate and save but when I click submit the field ...
3
votes
2answers
454 views
WordPress prompt checklist before publish?
Does anyone have a suggested plugin that does the following:
when a user hits publish on a post for the first time, it should have a popup, notice, or alert that asks the following:
Do you have a ...
2
votes
5answers
5k views
How to customize wordpress login/register pages?
My question is how do I customize the default WordPress login and register page without editing WP's core files. I'm thinking more along the lines of a functions.php code.
Can anyone help me out by ...
4
votes
1answer
212 views
Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?
My website allows users to upload events via an upload process incorporated into a customised front end page.
As an event uploader, I also want users to have access to the dashboard where they can ...
3
votes
1answer
527 views
Change admin language based on user (in single-site)
I'm trying to make a small plugin to install in some sites of a german client.
I can make my way around WordPress in german, but would be easier if it was in english.
There's a plugin that manages ...
1
vote
2answers
301 views
How Can I Centralize Content Usage and Approval in a WordPress Multi-Site installation
I am working with a non-profit client that runs several charities under one umbrella. A good metaphor would be to think of the United Way (but it's not the United Way).
Can a WordPress multi-site ...
1
vote
1answer
1k views
display all posts in wordpress admin
Is there any reason why Wordpress restricts the amount of posts you can administer at once to 20?
Is there a way to display all posts?
I want to change the category for about 1800 posts.
I don't ...
1
vote
2answers
2k views
How to remove a column from the Posts page
In a previous question I asked how to add a column to the Posts page in the Administration section, and got a working answer. But now I need to know how to delete an existing column (e.g. the Date ...
1
vote
3answers
537 views
Add extra field when admin create user
I have created extra field that user can edit on their 'Your Profile' page. The extra field also available on WordPress register page. What I want to ask is, how to add the field to User > Add new ...
3
votes
1answer
185 views
How to add filter in “Comments” at the admin panel?
I found so many information and most of the tutorials only talk about adding filter in post/custom post only.
I want to do something similar to this tutorial in 'Comments' area in admin panel.
Add ...
2
votes
2answers
638 views
Add column to pages table
Hey all i am trying to find the section within the edit.php page where it populates the table with all my current pages. What i want to do is add another colum to the table in order to launch a side ...
1
vote
2answers
159 views
Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
I'm looking for a way to conditionally load different scripts if the user is accessing the admin area from a mobile device.
In my case I'm looking to restrict the user to just be able to make new ...
1
vote
1answer
293 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
2answers
910 views
How to Change the Categories Order in the Admin Dashboard?
The order of categories on dashboard is alphabetical. Can I change it to custom order?
1
vote
2answers
209 views
Permalinks Question: Adding a prefix ONLY in front of the posts
I want all my posts to have /ARTICLES/%post-name% structure.
But as soon as I modify the custom structure to that, for a reason that beats me, wordpress adds the articles prefix across the board.
...
1
vote
3answers
174 views
Need help cleaning up a wordpress site after being hacked
Off Topic? Maybe, point me to where this would be On Topic!
Hi All,
My daughter attends a private school. Recently their wordpress website was hacked and they need some help cleaning it up. I don't ...
0
votes
1answer
112 views
Top toolbar is not showing in wordpress admin panel
Today I came over a very interesting and confusing problem. I developed a wordpress website in my localhost and it run perfectly. But when I moved that site in my server I saw a strange thing. When I ...
0
votes
1answer
198 views
How do I correctly transfer my site from one domain to another?
I developed our wordpress site on a subdomain, so I did not disrupt our homepage while I got everything up and running with Wordpress (It was originally running under Orchard, and I needed tochange ...
0
votes
2answers
353 views
How to prevent parent admin page from appearring as a child admin page
I am using this code:
add_menu_page($page_title, $menu_title, $this->capability, $menu_slug, $function);
Which is adding top level admin page. When I add:
add_submenu_page( $menu_slug, 'sub ...
11
votes
5answers
4k views
Loading External Scripts in Admin but ONLY for a Specific Post Type?
So I continue to run into this issue and I just looking for the best and simplest solution to solve this problem.
I have come to make use of custom post types in many different projects and have ...
10
votes
3answers
3k views
What are the standard admin CSS id/class tags?
Is there a list of WordPress CSS id/classes that i can use to build plugin option screens that look and feel more like a normal WordPress option page? i have found some through serendipity but it ...
7
votes
4answers
3k views
Showing User's Post Counts by Custom Post Type in the Admin's User List?
I'm trying to figure out how to hook into the /wp-admin/users.php manage page to
create custom columns for showing the number of posts users have for the custom post types on WPHonors.com.
I created ...
7
votes
6answers
1k views
Disable dragging of meta boxes?
Anyone know how to disable this functionality so the meta boxes can't be repositioned?
8
votes
4answers
537 views
Is it possible to create a Wordpress tour? V3.3.1
I've recently upgraded to version 3.3.1 and noticed a nice feature that would be great for our non-Wordpress savvy clients - creating a tour of how to use Wordpress.
I've used the Yoast SEO plugin ...
5
votes
5answers
3k views
How to use more than 256MB of memory in the admin?
I'm building a site for a photographer who uploads pictures that are normally large for todays digital cameras. Images are quite memory intensive, especially the image operations like creating ...
4
votes
2answers
3k 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']);
...
3
votes
3answers
9k views
Plugin to remove Admin menu items based on user role?
I searched high and low for a plugin that can remove/hide Admin menu items , including custom post types and taxonomies, based on user role.
Every one I have tried only does a global hide, not based ...
