• Resolved Hax

    (@hax)


    I try to add a meta box in the edit post admin page an is not showing I think is some thing to do with add_meta_box(). I also try some plugins(not 2.9 compatible) that use custom meta boxes in the edit post page and they are not showing either. They were on 2.8.6

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Hax

    (@hax)

    never mind I got it to work

    Hax: Can you tell me where you got your info to do this? I need to to do this too.

    Thread Starter Hax

    (@hax)

    here is the code

    add_action ('admin_menu',  'my_unique_meta_box');
    
    function my_unique_meta_box () {
    add_meta_box('box_id', __('box title'), 'function_name', 'post', 'side', 'low'); // for posts
    add_meta_box('box_id', __('box title'), 'function_name', 'post', 'side', 'low'); // for pages
    }
    
    function function_name () {
    // add here what you want the box to show / manage
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Meta boxes not showing’ is closed to new replies.