How to get the meta box name and value

It looks like you are trying to build a way to display a group of meta fields for your custom post type. Using get_post_custom you can fetch all the custom post meta for a single post in 1 request. Then using a combination of looping you can build your output as you see fit. A … Read more

Meta Box will not display

Try chaining the action hook for first function from: add_action( ‘admin_menu’, ‘true_add_a_metabox’ ); to below: add_action( ‘add_meta_boxes’, ‘true_add_a_metabox’ ); Also make sure that ‘Forum Discussion URL’ under ‘Screen options’ is checked to ensure it displays on edit post screen 🙂

WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]

I managed to solve it. The problem was in using a custom post-type with Metabox.php / MediaAccess.php (both from WPAlchemy class) Supposedly you can use custom post-types with WPAlchemy since, when instantiating a WPAlchemy_MetaBox object you can pass some optional parameters to enable that kind of costumization. Like this: $mb = $my_custom_metabox = new WPAlchemy_MetaBox(array … Read more

Cusotm MetaBox content not getting saved

You’re update function asks for a request parameter named meta_box_nonce (which is by the way a bad name) but your meta box template does not provide such a field. It should work if you add the following line right at the end of your function author_book_meta_box(): wp_nonce_field( ‘author_book_meta_box_nonce’, ‘meta_box_nonce’ ); Please consider to prefix the … Read more