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 am writing a theme and in it I have a function which creates two metaboxes. The forth parameter of the "add_meta_box()" function I used can be set to ( high, core, default or low). I want the boxes to appear in a particular order ( ie order within one of these 4 groups - eg with both metaboxes being set to 'priority' I would like to be able to determine which was displayed first and which second).

That is the back story, but my question derives from the fact that while experimenting with this I must have moved one of the boxes to another column; and that action seemingly overrides the priority in the programming altogether ( I know this because when I rename the metaboxes I have programmatic control again) . I have tried everything to get it back to default but to no avail. Can anyone help ?

share|improve this question
up vote 11 down vote accepted

In you PhpMyAdmin query for: (if you have a different database prefix, change that in the query, also change the user_id to yours)

FROM  `wp_usermeta` 
WHERE  `user_id` =1
AND  `meta_key` LIKE  'meta-box%'

Than delete those values and you will get the original order back. If you only want to change the menu order back for a page than only delete "meta-box-order_page".

share|improve this answer

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.