Just add an underscore before the metabox ID so the part of your code where you add a metabox looks something like this:
$id = '_drama-description';
$title="Description";
$callback = 'drama_description_metabox_markup';
$screen = $post_type;
$context="normal";
$priority = 'high';
$callback_args="null";
add_meta_box($id, $title, $callback, $screen, $context, $priority, $callback_args);
You also need to replace every occurance of drama-description
to _drama-description
in the part where you save the data. Hope it helps.
Related Posts:
- What is the index [0] for on post meta fields?
- Custom field metabox not showing in back-end
- Create meta boxes that don’t show in custom fields
- Custom fields to save multiple values
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- Create Multiple File Upload Metabox in WordPress
- Button inside Custom Meta Box triggering the Update Button
- Why is my Custom Meta Box Field Inputs NOT saving?
- get_posts in meta box dropdown not showing latest posts
- How can you include custom post meta in search without calling each key?
- Display Custom Meta Box Field Only If Value is Present
- shortcode in a custom metabox
- Problem with saving large amount of data in postmeta/usermeta
- Move Title and the Content WYSIWYG editor position
- How to validate select field in post meta?
- How to use media upload on metabox post page without breaking TinyMCE?
- Let’s Create Custom Field Template Documentation
- How add multiple wp_editor_box to new post
- Can I save post meta programatically without setting metaboxes?
- Meta box values are displayed on Custom Fields list. Is it possible to hide them?
- If metabox has content display content
- put saved metabox values back into fields and then display on the front end
- How to improve my non-unique metadata MySQL entries?
- Set class if a meta value is set within post archive
- WordPress Blocks, setAttributes not saving
- Allow HTML in Custom Metabox area
- Custom field metabox not showing in back-end
- Save, update, get and sanitize post meta as HTML not plain
- Create Meta boxes dynamically
- Get meta value when the page is a blog archive
- Can’t save meta field value if the title not set
- Display Data From This Custom Media Upload Meta Box?
- When post is updated, custom metadata in text area field is overwritten
- wp_postmeta are updated for only one page
- When editing a post with a custom meta box the values aren’t displaying correctly
- How to add new Metadata options (Date, Author, etc.) for Posts?
- Saving multiple custom meta box fields
- Best way to programmatically remove a category/term from a post
- add meta box – custom field : which to choose?
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- Storing meta fields multiple times OR once with multi dimensional array?
- Add custom option to Standard Page Attributes Meta Box
- passing argument to get_template_part() or a better way to code
- Only show metabox when date-value in other metabox is over?
- Is it possible to store arrays in a custom field?
- importing data from non-wordpress mysql db
- How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- Problem with adding exta field in metabox in custom post type
- Copying Custom Meta Values from existing post to a duplicate post
- Order posts according to user defined order for meta values?
- My metabox class
- How to save a ToggleControl value in a meta field?
- Loading scripts to the Post Edit page only
- How to Display Custom Meta Box only on Specific Page IDs
- Get specific custom field keys from a post and put into an array
- How to check for specific meta box value on front end and output accordingly
- Users Select inside custom metabox
- filtering custom post types via meta data drop down
- Custom Metabox Not Saving
- If meta key exists in get posts function otherwise create it
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- How do I Implement Atomic Update of Post Metadata?
- How do I have WP_Query match posts based on search parameter OR meta fields? (rather than search parameters AND meta fields)?
- Get registered custom fields or post meta even if empty
- I need a “Choose from existing content” popin
- Outputing a metabox textarea and avoid line breaks inside li tags
- How can I modify RSS item titles to be either the title or a custom meta field?
- Avoiding ACF get_field and returning to core WordPress function
- How to I retrieve the ID from the Posts page?
- create custom meta box with default value
- How to get posts with a metadata numeric key greater than X?
- How can I hide custom field from users used for caching response from external api?
- How do i get the attached images with custom value checked?
- Display posts with empty custom field
- Custom meta boxes not saving
- Get meta field value of all catgories
- Create a new custom field for all posts based on current custom field
- Add a meta field to the list of results for a custom post type
- Display Meta Data with HTML?
- How to store meta field values
- Group Posts By Custom Meta Value: Date
- Make separate text boxes for separate WordPress Custom Fields
- Meta field bulk editing no longer working in WP 6.0 [closed]
- Using Customizer API vs Custom Meta Box for custom content
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- Metabox/Custom fields are not saving input data
- WordPress admin area: select box with 12.000+ options
- Update custom table on metabox POST
- Metabox value for post loop?
- how to modify a field’s size in a metabox : ROWS height, and scroll control?
- Saved Post Meta Array Returns as String
- Query Multiple meta
- Problem saving meta data
- change attachment custom field onChange event
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- added a meta box to post however when saving menu while debug on throws a warning
- Make Custom Fields Public in JSON – API
- Display custom field value into content with hyperlink
- Order by a meta field in query loop