You forgot to declare the variable $main_detail. Since it’s a meta field you need to retrieve it first before you add it.
$main_detail = get_post_meta($post->ID, '_main_detail', true);
Also, I can see that some errors in your code.
echo '<label >';?><?php _e( 'short description:' );?></label>
Should be..
echo '<label >' . _e( "short description:" ) . '</label>';
And, you also need to add the key _main_detail in your $performer_meta array in order to save it.
Related Posts:
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- How to change default position of WP meta boxes?
- Can you make a custom metabox field be required to save a new post?
- Display content from custom meta boxes in revisions
- Changing the priority of a custom taxonomy’s metabox
- Custom post type metabox array
- How to get custom metabox image field?
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- Order custom posts by a date metabox
- How to select one major category (or custom taxonomy) for a custom post type?
- Cleanest way to code “Custom Write Panels/Meta Boxes”?
- Undefined index: at_nonce in custom post metabox
- Custom post type’s slug gets wrong when adding a custom meta box
- update a post meta from a single table cell TablePress
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- How to create a repeatable / reusable divs in the metabox?
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- How to customize the Categories meta box to allow only one category?
- wp is not defined error using wp.media to create a custom image uploader
- Displaying custom posts only if custom meta box’s date is not expired
- Displaying Metabox value (custom post type taxonomy)
- Hide Meta Boxes for Non-Admins
- get_post_meta is returning image id
- Add TinyMCE to CPT metaboxes in 3.1?
- WordPress nl2br is not converting newline to html line break when saving metabox value
- advanced search forms with 3 input text and that the main problem 3 input text
- Create custom PAGE with register_post_type
- Using My-Meta-Box-Class plugin, how is ‘Date’ value stored?
- Duplicate Custom Header Functionality into the post edit screen
- Send email button in custom post type backend
- What’s the difference between same wp functions get_posts(); functions in different form?
- Keep display metadata value on backend – Custom Metabox
- Populate dropdown from one custom post type inside another custom post type
- Custom Post Type with Templates using Meta Boxes?
- Why is my select meta data not saving?
- What is the best way to correlate one-to-many content-type relationships?
- Visual editor issue by having multiple tiny mce editors in a CPT
- A better way to add a meta box to custom post types
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Grouping metadatas into one
- Anon function and add_meta_box
- Create Connection Between two post types
- meta box on custom post type
- Checking if $_FILE isset for an array of file upload metaboxes
- Ordering values entered in Custom Taxonomies
- Permalinks: custom structure for taxonomy – tags?
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- Sizing textarea field in custom metabox
- Custom Post Meta from custom metaboxes is randomly being deleted
- Custom post-type metabox position
- How to add editable/dynamic values to dropdown of a Custom Post Type Meta Box
- wysiwyg editor don´t export paragraph
- How can I set a meta value that will then affect other post meta values?
- Inefficient Query Confusion
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- link featured image to external link
- Get custom term meta problem on single post type
- Is it possible to sort metabox teaxtarea values?
- Save Metabox Custom Field Value
- Meta box not appearing in my custom post type
- Adding an extra parameter [string] to my posts’ permalink?
- CMB select with data from CPT
- Empty meta-box returns publishdate if no value is set?
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- List of all posts in one custom post type in the edit screen of another
- Select Venue from dropdown list and reuse stored address information in meta_box
- Custom Meta Box with variable number of fields
- Save Custom Post Value
- How to Grab Anime info using Jikan API and fill the value in Metabox
- Custom Metabox Info Not Saving
- create a “add icon” field in taxonomies page
- Metabox collapsed by default
- Getting data from dynamically allocated metaboxes within a custom post
- Multiple useres editing specified content
- $_POST from a Meta Box
- Get meta values from parent post and save in child post
- Using meta boxes as the title of a custom post type
- check_admin_referer not working in custom meta box for custom post type
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Convert Custom Post Data to Javascript Array for Autocomplete
- Generating Custom Post Type list, within admin of another custom post type
- Custom meta box in editor of custom post type not working
- Avoid another meta box in my custom post type
- Meta box not saving
- CPT and metabox: create multi checkbox by using array?
- How to make post page unique and show it on home page?
- How can i embbed two different galleries in custom post type
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Custom sortable pages on custom post type
- Toggle a metabox based on a selection
- Add multiple custom meta boxes to different custom post types
- Custom post type Featured Image popup not working
- How to bring custom meta boxes to custom post types?
- Custom post type in submenu with custom meta box as a title with custom html
- Problems with a custom meta_box
- CPT Metabox with email notification
- Move title “meta box” in post mode
- My custom meta box with textarea field not saved