0

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?

2 Answers 2

1

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.

4
  • 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, 2010 at 21:32
  • @Jan in theory, yes, but then you're most likely getting into changing core files.
    – Norcross
    Nov 6, 2010 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, 2010 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, 2010 at 17:23
0

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 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.