I am using myMail news letter plugin.On the new campaign create page, I need some more metaboxes. Here my custom metaboxes are not working.

Sorry for the long code - http://laravel.io/bin/1ReQn

public function add_meta_boxes() {
        global $post;
        add_meta_box('mymail_details', __('Details', 'mymail'), array( &$this, 'newsletter_details'), 'newsletter', 'normal', 'high');
        add_meta_box('mymail_template', !in_array($post->post_status, array('active', 'finished')) ? __('Template', 'mymail') : __('Clickmap', 'mymail'), array( &$this, 'newsletter_template'), 'newsletter', 'normal', 'high');
        add_meta_box('mymail_submitdiv', __('Save', 'mymail'), array( &$this, 'newsletter_submit'), 'newsletter', 'side', 'high');
        add_meta_box('mymail_delivery', __('Delivery', 'mymail'), array( &$this, 'newsletter_delivery'), 'newsletter', 'side', 'high');
        add_meta_box('mymail_lists', __('Receivers', 'mymail'), array( &$this, 'newsletter_lists'), 'newsletter', 'side', 'low');
        add_meta_box('mymail_options', __('Options', 'mymail'), array( &$this, 'newsletter_options'), 'newsletter', 'side', 'low');
        // my custom metaboxes
        add_meta_box('wpt_events_location', 'Event Location', 'wpt_events_location', 'newsletter', 'normal', 'high');
        add_meta_box('mymail_categories', __('Categories', 'mymail'), array( &$this, 'newsletter_categories'), 'newsletter', 'side', 'high');
        //add_meta_box( $id, $title, $callback, $page, $context, $priority, $callback_args );
        /*
        global $wp_meta_boxes;
        foreach($wp_meta_boxes['post'] as $context => $priorities){
            foreach($priorities as $priority => $metaboxes){
                foreach($metaboxes as $id => $data){
                    remove_meta_box($id, 'newsletter', 'normal');
                }
            }
        }
        */
    }

Here all metaboxes are displaying except the wpt_events_location and mymail_categories.

Read more here: Metabox is not displaying in custom post


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: