You may have build your meta box wrong: If your custom field names are not valid variable names PHP will convert all characters not matching [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]
to underscores. The reason: register_globals. A request field must be able to work as a variable.
There are two workarounds:
-
Name the field like an array:
<input name="foo[TrackNumber mp3.Artist]">
. Then just parsefoo
to get the value. That’s what WordPress does with the custom field box. -
Search for
TrackNumber_mp3_Artist
and convert the value before you save it to the database.
Related Posts:
- How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button
- Removing panels (meta boxes) in the Block Editor
- Remove the Featured Image Meta Box
- How to reorder meta box position?
- One metabox for multiple post types
- Has anyone successfully integrated qtranslate with custom metaboxes?
- Custom Meta Boxes: multiple fields within a repeatable field
- Use meta box drag and drop to order items independently
- inside a metabox
- get registered metaboxes by post type or post ID
- Remove metabox from specific page template in admin
- Is there a filter/action to add content to WP admin metaboxes?
- Attach Files Metabox
- Tinymce/WordPress is removing all line-breaks?
- How do I create a meta box for dates?
- Editing the Default Links like “Site Admin” in the Sidebar Meta Section?
- Add a meta description to home page?
- Custom “Publish” / “Update” button &
- Remove a plugin meta box from the dashboard
- How to make multicheck for post/page meta box
- Set height of the categories meta box in post dashboard
- Replace the Post Excerpt Meta Box with a Field in My Custom Meta Box
- How to show post format gallery metabox image caption in the post front end
- Get image captions for images on gallery post format metabox
- Metabox of one post influence setting on other
- Display Single Attachment Image file size, uploaded date, resolution, file-name etc in Sidebar
- Remove a metabox registered by another plugin – Woocommerce [closed]
- Possible to limit custom meta boxes depending on what page template is used?
- I need a Simple image uploader with a simple screen. WP default has too many options.
- I’m confused about URL sanitization in meta boxes
- unable to save post meta on single field with multiple selects
- TinyMCE with custom buttons on a meta box
- How do i hide the auto-generated custom field that’s created when update_post_meta() is called?
- Set the default value as checked for a meta box checkbox
- How to search by metadata using REST API
- Display oembed in repeatable metaboxs using CMB2
- Automatically add a tag according to custom metadata
- How to add categories to page editor?
- Having trouble getting my meta data to save
- Undefined ‘post_type’ error on Add new page
- Display meta box on front end
- Show how many images are attached to a post/page on compose page
- metabox wordpress show in frontend
- Metabox context for page post type
- How to use MarkDown in a custom textarea field?
- How to use get_post_custom function on the blog page?
- Remove ShareDaddy meta box from Pages only
- How to modify Publish metabox?
- On click hide group of metabox, similar to screen options checkbox?
- Hide Polylang metabox from the post edit sidebar
- How to make a stand-alone button to the post edit view
- Controlling Meta Box Height
- Custom Meta box only returns most recent value on page
- wp_editor loses data, perhaps an html_entity_decode problem?
- How to list all tags as radio buttons in a meta box?
- how can i do metabox [closed]
- How to add meta box for image upload using WordPress media uploader?
- How to position user meta data field
- Display Content if Meta Checkbox is checked?
- add_post_meta() & update_post_meta()
- How to show the value of specific key from nested array?
- MetaBox with Editor instead of textarea – html not saved [closed]
- Use meta boxes inside an archive page template for Woocommerce
- Why do Metabox use Nonces?
- conditionally echo in meta box data loop
- Hide Page Title with Post Meta
- Meta Box multi checkbox in template
- Show button if meta box has content, else hide
- remove a single post_meta
- Checkbox in post not saving value
- how to log in to WP if the “Log in” link under Meta is missing
- Getting metabox value within a shortcode?
- post meta – problem : copy the same meta for all the articles
- Add metabox to pages that use custom template in WordPress
- Remove Username and just show Name in Author Metabox in backend
- how can I make this metabox area
- Metabox not saving values
- Update Post Meta in Front End with a form
- How to Edit & Update meta_box values from Front-End user Form
- Metabox with checkbox is not working true!
- Displaying a Metabox linked to post settings for all users
- Can’t get meta values to save
- Error when adding Meta Boxes, but only when adding 3 with the same callback
- Is this Edit Post Screen?
- use post meta in add_meta_boxes action
- Why is the text displaying, but not the textarea field itself?
- Meta box checkbox won’t save
- Add “Select” For Custom Post Type Metabox
- update_post_meta does not work
- add_post_meta not saved
- Hooking into the Meta Boxes (Name/Web Address/Description) on the ‘Add New Link’ Page
- WP Alchemy – stripping my paragraph tags from textarea metaboxes
- Adding meta boxes to custom post type
- Meta boxes not showing on custom post type. Blank page?
- dynamically get post attachment while editing
- Remove duplicated values from meta box values
- Setting Event to Expire Using Custom Metabox
- Drop down menu’s not saving using Custom Meta Boxs in WordPress
- Metadata in loops
- Conditonally check if Custom Meta Box has input