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 follow code from this link, https://gist.github.com/757903 and I have manage to create several metaboxes on my custom options page under Settings section. Stuff that doesn't work for me are :

  1. I can't make it work, so save form work, I think that this hook doesn't exists "add_action('admin_post_save_howto_metaboxes_general', array(&$this, 'on_save_changes'));"
  2. When I move boxes around, next time when I come back to that page, order of meta boxes is not saved, same thing for columns layout.

Can someone help me with this please. Thank you in advance.

share|improve this question
add comment

1 Answer

It's not enough to define areas and put metaboxes in them, you must define the layout via the current screen.

For example, when displaying a dashboard esque widget area on my custom option page, the first things I have are:

global $screen_layout_columns;
add_screen_option('layout_columns', array('max' => 3, 'default' => 3) );
$screen = get_current_screen();
wp_enqueue_script( 'dashboard' );
share|improve this answer
    
Hi, sorry for this late response, thank you, I have found this, chrismarslender.com/wp-tutorials/… , but your answer really help me, any idea for my second question? –  user1147 Feb 16 '12 at 1:52
add comment

Your Answer

 
discard

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.