Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I need to use wordpress standard post_submit_meta_box at front end. I registed the box in a class, then, at front_end on the posting page, I added all required wp post API php files. My codes doesn't work, what did I miss?

add_action( 'add_meta_boxes', array( &$this, 'register_meta_boxes' ) );
function register_meta_boxes(){
        $admin_path  = ABSPATH . '/wp-admin';
        require_once( $admin_path . '/includes/meta-boxes.php' );        
add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', 'my-post-type-name', 'side', 'core');  
}
share|improve this question

closed as not a real question by toscho Dec 12 '12 at 3:06

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

Problem solved by not register it. Just add_meta_box in screen output window.

share|improve this answer
3  
Add more detail to your answer and then accept it as a right answer so other people can get help from it. – Sisir Dec 29 '11 at 8:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.