Saving meta box data from selected option’s value in database is not working
The code has a few issues: The add_action() function to save the post meta should not be placed inside the callback function meta_box_content_footer(). Instead, it should be called outside of any functions, preferably in the main plugin file or in the functions.php file of your theme. There are two id attributes assigned to the select … Read more