• Resolved markcallen

    (@markcallen)


    Hi
    I’m going nuts trying to add a meta box to a custom post type. If I add the context as ‘side’, all the boxes (title, text editor etc.) all move to the side too!

    He’s the code I’ve got…

    function boxed_add_metaboxes($page,$post) {
    if(in_array($page,array('custom-post-type')))
      add_meta_box('in-featured-item','Featured Item','cpt_display_fields',$page,'side','low');
    }
    add_action('add_meta_boxes','boxed_add_metaboxes',10,2);

    Any of you fine people have any ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter markcallen

    (@markcallen)

    I fixed this – the problem was a html error in the callback function (missed putting a </div> in!!).

    Feeling suitably stupid about the time it took me to spot it !

Viewing 1 replies (of 1 total)
  • The topic ‘add_meta_box with 'side' context messes up admin area’ is closed to new replies.