Are you sure it isn’t saving the values to the DB? Perhaps it’s just not displaying the previously saved values in your form?
$values = get_post_custom( $post->ID );
This is what you are using to get your meta – but this returns a multi-dimensional array. Therefore when accessing your beef_meta_box_price value, you need to use $values[‘beef_meta_box_price’][0]. Alternatively, replace get_post_custom (which returns all meta for the post) with get_post_meta:
$beef_meta_box_price = get_post_custom( $post->ID, 'beef_meta_box_price', true );
This way you don’t get an array, just a string.
Related Posts:
- “The link you followed has expired” & “Error while saving” messages when adding new post
- Saving zero as meta value
- What’s the proper way to sanitize checkbox value sent to the database
- Secure way to use name_save_pre?
- phpMyAdmin – Error > Incorrect format parameter?
- Difference between partition key, composite key and clustering key in Cassandra?
- How SID is different from Service name in Oracle tnsnames.ora
- What is a relation in database terminology?
- Why is my database import losing text widget data?
- Why WordPress choose data serialization over json_encode?
- Are There Any Plans for WordPress to Support Databases Other Than MySQL?
- Reset Post IDs to less than 64bit integer
- how can get database name in wordpress?
- Why won’t my metabox data save?
- Does WordPress use the InnoDB engine for MySQL by default?
- $wpdb->prepare() warning in WordPress 3.5
- Best way to import users, post and categories from an external database
- Performance tips for a large user base [closed]
- How to delete outdated, wrongly sized images in _wp_attachment_metadata?
- Long option names fail silently?
- wp_options is GB in size
- Can’t update database after wordpress update from 3.8.1 to 4.4.1
- Relationship between performance and database size
- Why does WordPress rely on an fully qualified site_url with a 15-step plan for moving a site?
- WordPress and automated MySQL backups to a different host
- Size article thumbnails and retrieve them directly from database
- Should I be able to run two different “close” code versions of wordpress with the same DB
- how to store arrays into a database
- How can I create a Bible search engine via WordPress? [closed]
- Error establishing a database connection; After importing DB & Theme
- Where are WP_Errors Saved
- Get all images from this database table
- Delete transients in website
- Error establishing database connection – high traffic?
- wp_get_current_user always returns 0 continued
- Bulk-create posts from SQL database
- I am switching laptops. I host my WP server through MAMP. I want to transfer [closed]
- How can i customize the export personal data file?
- Is there a solution to auto-post data to a WP post from a database
- How to inform the user that the save was not successful?
- Auto login subdomain from main domain on single sites with different DB
- Logins from WP users table use on another page
- Uknown meta entries in wp_postmeta
- Error establishing a database connection problem in xampp saver
- WordPress site URL changed; how to fix it without database access?
- I’m not able to get access to $wpdb [duplicate]
- Create table with dbDelta,can’t put any DEFAULT data
- WordPress database connection [closed]
- Changing between Local Host DB to Production DB and in reverse
- WordPress site to be able to connect with data on local machine of user
- Bulk Updating Post Date in 1 day Increments
- What is the purpose of the “term_id” column in the “wp_term_taxonomy” table?
- Query Column of Specific ID from Database Table
- Posting variables to WP database using $_POST method
- Link image with data from the wpdb
- Update multiple rows in one query
- Storing user submitted forms [closed]
- User Tracking for Custom Post Type “Lesson”. Database Queries and Performance
- Understanding WordPress Search
- Re-creating a WordPress database
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- contact form-7 drop downs not populating database [closed]
- Cloning blog to localhost via WAMP
- Export WP Subsite DB Fully Ready for Import Elsewhere
- Sed Command Not Writing Changes to SQL file
- How do I get database rows from a custom table using wpdb?
- Realtime database update from 3rd party apps (notion, airtable, sheet, etc)
- Join Query on WP_USERMETA Table
- WordPress Settings API Overrides My Previous Value
- Move Non-WordPress users table to WordPress database
- How to check and get json object in WP database?
- Is there an actual way to synchronize ‘production’ and ‘develop’ WordPress databases?
- Lost database connection
- How to force set same page as homepage and blogpage in static page settings
- Getting values from form and saving in database but spaces are inserted instead of form values
- is it possible to install new WordPress in an old WordPress folder?
- Can someoene please help with customization of a post?
- Exporting Post ID, Post Title, Primary Category and Primary Category ID
- how restrict user to give star ratings once for a post?
- HELP $q=mysql_query($sel) or die(mysql_error()) HELP
- Updating Posts table in database without overwriting user generated content
- WordPress credentials not matched
- How to set posts to draft in bulk based on the content of the post
- 2 $wpdb queries causing error Table ‘wp_postmeta’ is specified twice, both as a target for ‘UPDATE’
- Confused over wp-config.php and ‘database user + database password + name’
- Change Domain name in database
- WordPress character set issue
- Copy WordPress to new directory
- Create a new table on the database and save parameters from a contact form
- version control for wordpress? (wordpress folder and database at same time)
- not saving post in wp_post wordpress database table
- How to add data from wordpress tables to new database tables you have created
- Install WordPress with SQL database
- How to back-up a database on IIS
- Creating Job Tickets
- Best db table structure for users with many records
- Where are database files of a WordPress website?
- SQL query to rewrite all media URLs to end with .webp
- Weird WP -Cli Error Connection Refused
- Many images in wp-content/uploads folder that are not in Media Library