I believe the problem is with your use of sanitize_text_field
(line 668 in your pastebin), which will strip markup. Proof of concept:
$str="<p>Howdy Ho!</p>";
echo $str;
echo sanitize_text_field($str);
You will need to use some other function to clean the data… possibly wp_kses
Related Posts:
- Save metabox with multiple checkbox array
- How to add tab which is visible only in admin side of product in woocommerce? [closed]
- How to create Image gallery Metabox in wordpress [closed]
- Best choice of options/settings framework for plugin/theme development
- Ordering posts by metadata
- update post meta for checkbox in the admin when inserted in the front-end
- Custom Taxonomy to dropdown box on adminside wordpress
- Create & Save multiple Meta-boxes
- Saving value of a selection option in comment form as comment meta
- Add a Save Button to Custom Meta Box [duplicate]
- How to get Metabox custom field to show checked if value is updated using post meta query?
- How do I update a field of a meta box?
- Input value from metabox is not found in $_POST after post save
- Run Shortcode of post’s custom field in functions.php / Plugin
- WP nonce field checkbox prints checked=’checked’ outside input field
- Issues Updating Post Meta with AJAX (Seems simple but cannot figure it out)
- Adjust query on single
- Why is $_POST empty when saving custom Meta Box?
- add_meta_box does not display meta box in Admin
- Displaying Custom Post Meta
- Post meta vs separate database tables
- How to validate custom fields in custom post type?
- Get List of Registered Meta Boxes and Removing Them
- Create meta boxes that don’t show in custom fields
- How can I free up the memory used by update_post_meta?
- How to add multiple featured image in meta box in post editor?
- how to set default value for checkbox in wordpress
- Metabox Not Showing on Custom Post Type But On Pages and Post
- Using radio button meta data from a custom meta box
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Plugin development: get_post_meta is not working [closed]
- Act on user meta updated, but only once
- Admin auto-refresh is interfering with Firebug — how to prevent it?
- Show add_meta_box by selecting a specific category
- How to check if Woocommerce Order number equals to post ID?
- 403 Error when text is pasted in Custom Metabox Textarea
- Create Multiple File Upload Metabox in WordPress
- Dashboard – get status and position of metaboxes and pass them to ajax method
- Strange issue saving custom field data for a WooCommerce order
- Woocommerce – Convert Delivery method into a custom field
- Doubts about the use of metadata and how this can affect performance on WordPress
- How to use TinyMCE Editor for one of my custom post meta field?
- Why is my Custom Meta Box Field Inputs NOT saving?
- Get draggable widgets on Edit Post page
- Including comments meta box on a plugin page
- Custom code for WordPress dynamic menu
- How can you include custom post meta in search without calling each key?
- Custom fields for custom post type
- shortcode in a custom metabox
- Delist entries in the_loop
- Remove entire [$key] from array stored in custom field using Ajax – unset($array[$key]); not working
- How can I add a simple custom field to my plugin?
- Ajax is not working in a loop
- How to I retrieve the ID from the Posts page?
- create custom meta box with default value
- Problem with saving large amount of data in postmeta/usermeta
- Move Title and the Content WYSIWYG editor position
- How to use media upload on metabox post page without breaking TinyMCE?
- Meta box on options page save form problem
- Let’s Create Custom Field Template Documentation
- Moving/dragging a metabox removes TinyMCE’s content
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- per blog metadata for plugin
- How to format custom fields when editing an attachment?
- Using delete_post_meta for deleting multiple selected options
- 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
- Add a class to post_class if more than one post shares same meta_value_num
- Add a meta field to the list of results for a custom post type
- Can I attach a plugin via my add_filter callback contents?
- Metabox is not displaying
- want to show CMB2 metabox on woocommerce product data tab
- Customise Grouped Product display in Woocommerce with custom column
- register_meta not showing custom post type metabox data in rest api
- Set class if a meta value is set within post archive
- WP_Query not ordering correctly
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Adding customs fields on each product on the cart
- Insert, update or remove data from database (usermeta)
- Save meta box data from selected dropdown list in bbpress reply form
- Metabox types list
- Allow HTML in Custom Metabox area
- Add WordPress Meta Box saved form input to WordPress RSS feed [duplicate]
- Custom field metabox not showing in back-end
- Creating a “Related Meta” type field?
- Unexpected issue when using attachment_fields_to_edit filter
- Save, update, get and sanitize post meta as HTML not plain
- How to get post that has non zero or greater than zero meta value
- Saving post meta
- How to show metabox just in post.php in admin?
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- When post is updated, custom metadata in text area field is overwritten
- Show Metabox Images in slideshow instead of static
- When editing a post with a custom meta box the values aren’t displaying correctly
- I want to display the content of a text field only if it has been entered
- Create Unique and Customized User ID for Website Members in WordPress
- Can I log the searches that are returning 404 in the DB?
- How to add new Metadata options (Date, Author, etc.) for Posts?
- Saving multiple custom meta box fields