Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a custom post type and am placing in custom meta boxes. How do I change the ordering of the fields of a custom page in the admin?

For example, I have a custom field called subtitle.
How do I place this between the title and description rich textbox in the admin of the custom post type page?

share|improve this question
add comment

2 Answers

You can't, really. When setting your boxes you can determine whether they appear below the post editor or on the side, and what their order is, but the title field and post editor are fixed in their location.

share|improve this answer
3  
Well, I guess you can place anything anywhere you want using some Javascript to change the DOM of the page, but that would probably not be so future-proof. –  Jan Fabry Nov 5 '10 at 21:32
    
@Jan in theory, yes, but then you're most likely getting into changing core files. –  Norcross Nov 6 '10 at 3:08
1  
Hmm, I think it should be possible with an extra JS file. Now you got me intrigued, I'll try whether I can achieve it! –  Jan Fabry Nov 6 '10 at 10:09
1  
It should be possible as well by just sorting the array that lines the boxes up. That would be possible as a plugin on the server-side so no need to mess with Javascript. My 2 cents. –  hakre Nov 6 '10 at 17:23
add comment

use this http://farinspace.com/wpalchemy-metabox/ (amazing!!) and set your metabox to

'hide_title' => true,
'view' => WPALCHEMY_VIEW_ALWAYS_OPENED,
'lock' => WPALCHEMY_LOCK_AFTER_POST_TITLE 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.