Saving Custom Values


Sir can you please tell me how to save the values of custom fields created like this-

add_action( 'admin_init', 'my_function_name' );

function my_function_name() {

$fields = array( array( 'id' => 'image', 'label' => 'Image', 'type' => 'image', ),
array( 'id' => 'title', 'label' => 'Title', 'type' => 'text', ), array( 'id' => 'desc', 'label' => 'Description', 'type' => 'textarea' )
);

beans_register_post_meta( $fields, array( 'page','template-homepage.php' ), 'beans', array( 'title' => 'Metabox title' ) );

Write a reply

Login or register to write a reply, it's free!