WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom post type which have a lot of custom field that categories in meta box. The problem is how do I sorting the meta box in the order that I desired?

As I know there is only 'high','core','normal' and 'side' for positioning the meta box, which is not a practical way to sorting the meta box. Let's say if I set 'high' position for two meta boxes, how do I know which one is on the top??


share|improve this question
Possible duplicate? wordpress.stackexchange.com/questions/1390/… – deathlock Oct 21 '12 at 20:21

Users can drag and drop meta boxes and WordPress will save the order. So, in a sense, the order in which they were originally rendered does not matter.

You know which one comes first because when you call add_meta_box it simply pushes your meta box's args onto a global array called $wp_meta_boxes. Whichever call to add_meta_box came first will be the first meta box.

share|improve this answer
I know, but I want the position to be fixed. I don't want to allow the user to change the position. Is there anyway to predefined the position by the admin, and then fixed it so the user cannot change it? – dev-jim Jul 9 '12 at 13:24
Why is your meta box that important? – chrisguitarguy Jul 9 '12 at 13:54
Well, I just want better user experience. – dev-jim Jul 9 '12 at 15:41
@dev-jim can you solve this questions, I want to the same functionality. best – xzegga Nov 9 '15 at 8:19

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.