Tagged Questions
1
vote
1answer
37 views
How to build custom WP admin with custom URLs
I would like to create a custom WP admin area, that uses custom URLs to navigate thought it and have a custom generated HTML.
A member will be able to login via a custom URL, for example: ...
0
votes
0answers
20 views
Change post_format with form in admin
I have a custom administrative area, where I have a list of posts displayed from different authors. I am trying to be able to change the post_format for one of the posts, based on the click of a ...
2
votes
0answers
58 views
Hide upload image fields for the different media upload popups
I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
1
vote
0answers
72 views
Admin search post meta
I have currently built a property database using WordPress and am purely using the back-end for the whole job. I am listing all the properties and used a plugin called "Easy Filter" to add custom ...
5
votes
5answers
427 views
Add separator to admin submenu
I would like to add a separator to the admin submenu section, NOT in the top level section.
I'm thinking of using javascript and styling to do the job, but I was wondering if there's a more ...
0
votes
1answer
55 views
How to include stylesheet in custom admin using parent_slug
Using this code from codex:
function my_enqueue($hook) {
if( 'edit.php' != $hook )
return;
wp_enqueue_script( 'my_custom_script', plugins_url('/myscript.js', __FILE__) );
}
add_action( ...
0
votes
1answer
111 views
Function to add custom HTML into head in custom post-type list page
How can I add custom HTML/PHP file into head where custom post-type list showing like this ?
Any Wordpress function can do this ? or I can only do by JS(jQuery) to append my custom content ?
0
votes
1answer
236 views
Usage of custom post types in a custom admin menu
This question is a little hard to explain but i will try to be as clear as i can:
I have a custom theme that i am presently working on, within this theme i have added a top level menu in wp-admin ...
0
votes
2answers
25 views
How to create functions that affect only a specific user
I am customizing the WP admin area and want the functions I am using to only affect a specific user. Any Ideas on how to write this?
3
votes
1answer
58 views
Any way to create a revision of a post ONLY with a new button in the Meta Box?
Quite sure there isn't a way baked in to do this, but anyone have any ideas on how I would get something like this done? I want to turn autorevisions off and ONLY have a revision created when a button ...
0
votes
1answer
30 views
Choose options via url
I wonder if it's possible to preselect options when creating new post via url.
My goal is to bookmark links when i want to create post with specific options such as category and not to have to select ...
0
votes
1answer
211 views
Selectbox in admin panel function linking to CSS
I want to link the selectbox to my CSS.
Like if I click an item on the list, the background of my header will change - the header's color is in the CSS.
The selectbox isn't in the html but it's in ...
0
votes
1answer
185 views
I need a “Choose from existing content” popin
I'd like to create a field that allows the admin to select from other existing post types. Specifically, I want to create an options box to choose which events display on the homepage.
For now, I've ...
1
vote
2answers
637 views
How to show custom field's value under post/page title in wp-admin
I'm trying to add the value of a custom field under the post/page title in wp-admin list of posts/pages (much like excerpt mode in posts list) without hooking into the columns process since other ...
5
votes
2answers
144 views
What is the best way to customise admin files so they survive future upgrades?
I have a site with some custom post types, one of which doesn't have a title.
When viewed in the admin section, the posts are listed like so
Which is less than ideal, for obvious reasons.
I have ...
0
votes
3answers
135 views
Simplify the admin end
I'm thinking about using WordPress as a content management system for a school. The frontend of WordPress itself would never be seen by the students, but the admin interface would be used by teachers ...
1
vote
1answer
141 views
Hard-coding custom menu elements for menu manager
I realize that one can add custom links through the menu manager but is there a way to manually create such components through the functions.php file?
More specifically, one example here relates to a ...
1
vote
1answer
198 views
Adding all sub-pages to the menu manager
Is there some simple way which would allow one to add a page to a menu (through the menu manager interface) and be able to define if the inclusion of this item should automatically add all subpages up ...
0
votes
2answers
67 views
Is there a way to have the view link on manage posts page to open in a new window or tab?
Hi I am trying to figure out on how to get the "view" link on the manage posts / custom post types and pages to open in a new tab or window.
I know it is probably possible to do via the ...
5
votes
2answers
850 views
Change admin bar to default:off
While I quite like the admin bar I actually want it to be OFF by default instead of ON ( I don't want to disable it altogether because I want users to be able to turn it on if they want - but but I ...
0
votes
1answer
214 views
Preserve custom URL parameter after saving post
I'm testing different layouts for my admin pages, and the easiest way I found to determine which layout to load is with URL parameters. One of those parameters is "fullscreen=1" which hides the admin ...
2
votes
1answer
241 views
How to get a nofication when post submitted
I was wondering is there a way to send the admin a notification (email or otherwise) whenever a user submits a post.
Currently, I have to log into the admin section to see if there was anything ...
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 ...
3
votes
5answers
4k views
Custom order of terms for custom taxonomy in admin and website
I have a custom taxonomy registered for my custom post type. I need to make it possible for a user to specify the order in which the taxonomy terms should appear (something like menu order for pages). ...
2
votes
1answer
675 views
How to remove row-actions from pages table?
I've already found out here how to remove the row-actions from the posts table in wordpress admin. Now I'd like to do the same in the pages table. I've looked in the core files but, well, I just don't ...
0
votes
1answer
316 views
Background image in login showing in admin area
I have customized my login screen with a logo using html{background:#E2DEAF url(.../images/login_logo.jpg) center top no-repeat;} because it is so wide. Usually would not tie something to the HTML ...
0
votes
1answer
164 views
Custom taxonomy admin description
Is it possible to add a short description to a custom taxonomy's admin area? For example, I've added a taxonomy that determines what kind of banners are displayed on a post's page. In the meta box ...
0
votes
2answers
138 views
How to customize admin posts based on the user who is logged in
We are building a site that will have 10-15 photographers posting content.
There will be a common blog + each admin has their own portfolio to manage. "Portfolio galleries" and "portfolio pages" are ...
1
vote
2answers
146 views
Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
Personally I really dislike how wordpress shows all the "popular terms" in different sizes on the taxonomy add/edit screen in the admin area.
Does anyone know of a way to either remove this entire ...
0
votes
1answer
556 views
WP 3.1 & Sorting Admin Post List
I am stuck on two issues in trying to get my custom post type for events to function correctly in the admin area.
1st) I have upgraded to wordpress 3.1 after which the code (below) which was working ...
4
votes
1answer
1k views
Styling Shortcodes in Visual Editor
Does anyone know how to style the visual editor so that when specific shortcodes are used they are replaced with an image within the visual editor?
I have found that many users screw up the shortcode ...
4
votes
2answers
730 views
Any official way to create an admin theme?
I was wondering whether there's a common way of customising the aspect of the admin panel.
I know you can play with the css and js files but what I was looking for is some kind of "admin theme" like ...
174
votes
108answers
62k 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 ...
25
votes
6answers
8k views
Organizing Code in your WordPress Theme's functions.php File?
The more customization I make to WordPress the more I start thinking about if I should be organizing this file or splitting it up.
More specifically, if I have a bunch of custom functions which only ...