also how do i use short code and php code to show custom field value from custom table ??
i try this short code but it does not show value "name" for User ID = 1 :
[rwmb_meta id="name" object_id="1" storage_type="custom_table" table="wp_test"]
here is my custom table
<?php
add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
function your_prefix_function_name( $meta_boxes ) {
$prefix = '';
$meta_boxes[] = [
'title' => __( 'Test', 'your-text-domain' ),
'id' => 'test',
'type' => 'user',
'storage_type' => 'custom_table',
'table' => 'wp_test',
'fields' => [
[
'name' => __( 'Name', 'your-text-domain' ),
'id' => $prefix . 'name',
'type' => 'text',
'save_field' => 1,
],
[
'name' => __( 'Phone', 'your-text-domain' ),
'id' => $prefix . 'phone',
'type' => 'text',
'save_field' => 1,
],
],
];
return $meta_boxes;
}