{"action":"closed","issue":{"url":"https://api.github.com/repos/tombenner/wp-mvc/issues/55","labels_url":"https://api.github.com/repos/tombenner/wp-mvc/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/tombenner/wp-mvc/issues/55/comments","events_url":"https://api.github.com/repos/tombenner/wp-mvc/issues/55/events","html_url":"https://github.com/tombenner/wp-mvc/issues/55","id":57034450,"number":55,"title":"WP MVC - metabox functionality","user":{"login":"prabhuchelladurai","id":9210333,"avatar_url":"https://avatars.githubusercontent.com/u/9210333?v=3","gravatar_id":"","url":"https://api.github.com/users/prabhuchelladurai","html_url":"https://github.com/prabhuchelladurai","followers_url":"https://api.github.com/users/prabhuchelladurai/followers","following_url":"https://api.github.com/users/prabhuchelladurai/following{/other_user}","gists_url":"https://api.github.com/users/prabhuchelladurai/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhuchelladurai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhuchelladurai/subscriptions","organizations_url":"https://api.github.com/users/prabhuchelladurai/orgs","repos_url":"https://api.github.com/users/prabhuchelladurai/repos","events_url":"https://api.github.com/users/prabhuchelladurai/events{/privacy}","received_events_url":"https://api.github.com/users/prabhuchelladurai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-09T14:05:44Z","updated_at":"2015-05-16T14:45:31Z","closed_at":"2015-05-16T14:45:31Z","body":"I am developing wordpress plugin. I need to use metabox for certain needs. How can i accomplish this using WP MVC? Currently i am using the wordpress add_meta_box() function in the main file of the plugin. Since this is specific to a particular model, i need to rearrange the code accordingly.\r\n\r\n\r\n    // Add meta box\r\n\tfunction example_add_box() {\r\n\t\tglobal $meta_box;\r\n\t\tglobal $post;\r\n\t\tadd_meta_box($meta_box['id'], $meta_box['title'], 'example_product_box', $meta_box['page'], $meta_box['context'], $meta_box['priority'],'add_my_meta_box');\r\n\t}\r\n\r\nAnd I have added too many lines of coding for box definition, register post type, save box data etc..\r\n\r\nI need to simplify the coding and achieve the very purpose of using the WP MVC framework. Can anyone help me in this regard? Thanks."}}